From 7679396ebbb38115eedbfb8e9636dff50cdf2075 Mon Sep 17 00:00:00 2001 From: poet-nohit Date: Sat, 21 Mar 2015 13:41:32 -0600 Subject: SendInventory when handleCommand_Interact is a use. This call was missing when change looping to triggering SendInventory: 1b2f64473ed4f222d3b7f02df853730d4382105e --- src/network/serverpackethandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3