1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-19 19:09:49 +00:00

Send inventory packets when picking up world items

This commit is contained in:
David Cernat 2016-11-17 20:51:07 +02:00
parent a7f081dfa5
commit 6e630e6123

View file

@ -34,6 +34,9 @@ namespace MWWorld
event->cellRef.mRefNum.mIndex,
event->cell.getDescription().c_str());
// LocalPlayer's inventory has changed, so send a packet with it
mwmp::Main::get().getLocalPlayer()->sendInventory();
MWBase::Environment::get().getWorld()->deleteObject (getTarget());
}
}