diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-04 15:27:53 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-04 15:28:33 +0100 |
commit | 7e088fdfe3c77083606bce955624aef1da59bb32 (patch) | |
tree | 00d427e45bbcac528b4aa86b3060c09454cb08cc /src/network/packethandlers/server.cpp | |
parent | bbed01ab62bf2433e103dd18c6c07ff3f503bc57 (diff) | |
download | minetest-7e088fdfe3c77083606bce955624aef1da59bb32.tar.gz minetest-7e088fdfe3c77083606bce955624aef1da59bb32.tar.bz2 minetest-7e088fdfe3c77083606bce955624aef1da59bb32.zip |
We always know playerSAO when calling SendInventory. Using it instead of searching it via peer_id
Diffstat (limited to 'src/network/packethandlers/server.cpp')
-rw-r--r-- | src/network/packethandlers/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/packethandlers/server.cpp b/src/network/packethandlers/server.cpp index 526c17344..aeaa2f3f3 100644 --- a/src/network/packethandlers/server.cpp +++ b/src/network/packethandlers/server.cpp @@ -1391,7 +1391,7 @@ void Server::handleCommand_Interact(NetworkPacket* pkt) // Apply returned ItemStack if (playersao->setWieldedItem(item)) { - SendInventory(pkt->getPeerId()); + SendInventory(playersao); } } |