1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 14:55:13 -05:00

SendInventory when handleCommand_Interact is a use.

This call was missing when change looping to triggering SendInventory: 1b2f64473e
This commit is contained in:
poet-nohit 2015-03-21 13:41:32 -06:00 committed by Loic Blot
parent 837a2e1e5f
commit 7679396ebb

View File

@ -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