From: poet-nohit Date: Sat, 21 Mar 2015 19:41:32 +0000 (-0600) Subject: SendInventory when handleCommand_Interact is a use. X-Git-Tag: 0.4.13~453 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7679396ebbb38115eedbfb8e9636dff50cdf2075;p=oweals%2Fminetest.git SendInventory when handleCommand_Interact is a use. This call was missing when change looping to triggering SendInventory: 1b2f64473ed4f222d3b7f02df853730d4382105e --- 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