mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 15:41:30 +00:00
Fix for world containers failing in experiment mode
This commit is contained in:
parent
7c5b1e8fd2
commit
31b70ea74b
@ -5781,8 +5781,9 @@ namespace RoF
|
||||
break;
|
||||
}
|
||||
case invtype::typeWorld: {
|
||||
server_slot = EQEmu::invslot::WORLD_BEGIN; // evidently, [4,-1,-1,-1] is sent when world object is in experimental mode and combine is clicked
|
||||
if (rof_slot.Slot >= invslot::SLOT_BEGIN && rof_slot.Slot < invtype::WORLD_SIZE) {
|
||||
server_slot = EQEmu::invslot::SHARED_BANK_BEGIN + rof_slot.Slot;
|
||||
server_slot += rof_slot.Slot;
|
||||
}
|
||||
|
||||
break;
|
||||
@ -5949,8 +5950,9 @@ namespace RoF
|
||||
break;
|
||||
}
|
||||
case invtype::typeWorld: {
|
||||
server_slot = EQEmu::invslot::WORLD_BEGIN; // evidently, [4,-1,-1,-1] is sent when world object is in experimental mode and combine is clicked
|
||||
if (rof_slot.Slot >= invslot::SLOT_BEGIN && rof_slot.Slot < invtype::WORLD_SIZE) {
|
||||
server_slot = EQEmu::invslot::SHARED_BANK_BEGIN + rof_slot.Slot;
|
||||
server_slot += rof_slot.Slot;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
@ -6071,8 +6071,9 @@ namespace RoF2
|
||||
break;
|
||||
}
|
||||
case invtype::typeWorld: {
|
||||
server_slot = EQEmu::invslot::WORLD_BEGIN; // evidently, [4,-1,-1,-1] is sent when world object is in experimental mode and combine is clicked
|
||||
if (rof2_slot.Slot >= invslot::SLOT_BEGIN && rof2_slot.Slot < invtype::WORLD_SIZE) {
|
||||
server_slot = EQEmu::invslot::SHARED_BANK_BEGIN + rof2_slot.Slot;
|
||||
server_slot += rof2_slot.Slot;
|
||||
}
|
||||
|
||||
break;
|
||||
@ -6221,8 +6222,9 @@ namespace RoF2
|
||||
break;
|
||||
}
|
||||
case invtype::typeWorld: {
|
||||
ServerSlot = EQEmu::invslot::WORLD_BEGIN; // evidently, [4,-1,-1,-1] is sent when world object is in experimental mode and combine is clicked
|
||||
if (rof2_slot.Slot >= invslot::SLOT_BEGIN && rof2_slot.Slot < invtype::WORLD_SIZE) {
|
||||
ServerSlot = EQEmu::invslot::SHARED_BANK_BEGIN + rof2_slot.Slot;
|
||||
ServerSlot += rof2_slot.Slot;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user