1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-23 20:55:43 +02:00

Merge pull request #1 from poet-nohit/poet-nohit-patch-1

Update serverpackethandler.cpp
This commit is contained in:
poet-nohit
2015-03-21 13:52:33 -06:00

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