mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 07:30:23 +02:00
Wieldhand: Allow overriding the hand
This commit is contained in:
@ -1529,10 +1529,7 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)
|
||||
m_script->on_cheat(playersao, "finished_unknown_dig");
|
||||
}
|
||||
// Get player's wielded item
|
||||
ItemStack playeritem;
|
||||
InventoryList *mlist = playersao->getInventory()->getList("main");
|
||||
if (mlist != NULL)
|
||||
playeritem = mlist->getItem(playersao->getWieldIndex());
|
||||
ItemStack playeritem = playersao->getWieldedItem();
|
||||
ToolCapabilities playeritem_toolcap =
|
||||
playeritem.getToolCapabilities(m_itemdef);
|
||||
// Get diggability and expected digging time
|
||||
|
Reference in New Issue
Block a user