diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/network/serverpackethandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index 97e46c515..f6438d311 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -1724,7 +1724,9 @@ void Server::handleCommand_Interact(NetworkPacket* pkt) if (m_script->item_OnUse( item, playersao, pointed)) { // Apply returned ItemStack - playersao->setWieldedItem(item); + if (playersao->setWieldedItem(item)) { + SendInventory(playersao); + } } } // action == 4 |