mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 05:15:35 +00:00
[Client] Send ID_PLAYER_INVENTORY upon dropping an item, 2nd attempt
This commit is contained in:
parent
f314b13edf
commit
b2cdec8efa
1 changed files with 3 additions and 2 deletions
|
@ -88,8 +88,6 @@ namespace MWGui
|
|||
|
||||
event->addObject(worldObject);
|
||||
|
||||
// LocalPlayer's inventory has changed, so send a packet with it
|
||||
mwmp::Main::get().getLocalPlayer()->sendInventory();
|
||||
mwmp::Main::get().getNetworking()->getWorldPacket(ID_OBJECT_PLACE)->Send(event);
|
||||
|
||||
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Sending ID_OBJECT_PLACE\n- cellRef: %s, %i\n- count: %i",
|
||||
|
@ -293,6 +291,9 @@ namespace MWGui
|
|||
WorldItemModel drop (mouseX, mouseY);
|
||||
mDragAndDrop->drop(&drop, NULL);
|
||||
|
||||
// LocalPlayer's inventory has changed, so send a packet with it
|
||||
mwmp::Main::get().getLocalPlayer()->sendInventory();
|
||||
|
||||
MWBase::Environment::get().getWindowManager()->changePointer("arrow");
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue