mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
SendInventory when handleCommand_Interact is a use.
This call was missing when change looping to triggering SendInventory: 1b2f64473e
This commit is contained in:
parent
837a2e1e5f
commit
7679396ebb
1 changed files with 3 additions and 1 deletions
|
@ -1724,7 +1724,9 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)
|
||||||
if (m_script->item_OnUse(
|
if (m_script->item_OnUse(
|
||||||
item, playersao, pointed)) {
|
item, playersao, pointed)) {
|
||||||
// Apply returned ItemStack
|
// Apply returned ItemStack
|
||||||
playersao->setWieldedItem(item);
|
if (playersao->setWieldedItem(item)) {
|
||||||
|
SendInventory(playersao);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // action == 4
|
} // action == 4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue