mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-28 06:05:18 +01:00
@@ -1198,6 +1198,10 @@ void Server::handleCommand_Interact(NetworkPacket *pkt)
|
|||||||
SendInventory(player, true);
|
SendInventory(player, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// on_secondary_use might have removed the object
|
||||||
|
if (pointed_object->isGone())
|
||||||
|
return;
|
||||||
|
|
||||||
pointed_object->rightClick(playersao);
|
pointed_object->rightClick(playersao);
|
||||||
} else if (m_script->item_OnPlace(selected_item, playersao, pointed)) {
|
} else if (m_script->item_OnPlace(selected_item, playersao, pointed)) {
|
||||||
// Placement was handled in lua
|
// Placement was handled in lua
|
||||||
|
|||||||
Reference in New Issue
Block a user