1
0
Fork 1
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:
David Cernat 2017-02-05 15:35:40 +02:00
parent f314b13edf
commit b2cdec8efa

View file

@ -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