Skip to content

Commit

Permalink
SendInventory when handleCommand_Interact is a use.
Browse files Browse the repository at this point in the history
This call was missing when change looping to triggering SendInventory: 1b2f644
  • Loading branch information
poet-nohit authored and nerzhul committed Mar 21, 2015
1 parent 837a2e1 commit 7679396
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/network/serverpackethandler.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 7679396

Please sign in to comment.