mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Fix broken build
The variable name changed but this didn't cause merge conflicts, so it wasn't caught before.
This commit is contained in:
parent
d364b6d0a6
commit
d77ea76476
@ -1166,9 +1166,9 @@ void Server::handleCommand_Interact(NetworkPacket *pkt)
|
|||||||
u16 wear = pointed_object->punch(dir, &toolcap, playersao,
|
u16 wear = pointed_object->punch(dir, &toolcap, playersao,
|
||||||
time_from_last_punch);
|
time_from_last_punch);
|
||||||
|
|
||||||
bool changed = punchitem.addWear(wear, m_itemdef);
|
bool changed = selected_item.addWear(wear, m_itemdef);
|
||||||
if (changed)
|
if (changed)
|
||||||
playersao->setWieldedItem(punchitem);
|
playersao->setWieldedItem(selected_item);
|
||||||
|
|
||||||
// If the object is a player and its HP changed
|
// If the object is a player and its HP changed
|
||||||
if (src_original_hp != pointed_object->getHP() &&
|
if (src_original_hp != pointed_object->getHP() &&
|
||||||
|
Loading…
Reference in New Issue
Block a user