mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
[Client] Send ID_PLAYER_INVENTORY upon dropping an item, 2nd attempt
This commit is contained in:
parent
f314b13edf
commit
b2cdec8efa
@ -88,8 +88,6 @@ namespace MWGui
|
|||||||
|
|
||||||
event->addObject(worldObject);
|
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);
|
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",
|
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);
|
WorldItemModel drop (mouseX, mouseY);
|
||||||
mDragAndDrop->drop(&drop, NULL);
|
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");
|
MWBase::Environment::get().getWindowManager()->changePointer("arrow");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user