diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/packethandlers/server.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/packethandlers/server.cpp b/src/network/packethandlers/server.cpp index 2deede0ca..9dd1c95dd 100644 --- a/src/network/packethandlers/server.cpp +++ b/src/network/packethandlers/server.cpp @@ -1390,7 +1390,9 @@ void Server::handleCommand_Interact(NetworkPacket* pkt) // Placement was handled in lua // Apply returned ItemStack - playersao->setWieldedItem(item); + if (playersao->setWieldedItem(item)) { + SendInventory(pkt->getPeerId()); + } } // If item has node placement prediction, always send the |