mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix overrideable hand ToolCapabilities and range (#15743)
This commit is contained in:
@@ -1944,11 +1944,11 @@ void GenericCAO::processMessage(const std::string &data)
|
||||
/* \pre punchitem != NULL
|
||||
*/
|
||||
bool GenericCAO::directReportPunch(v3f dir, const ItemStack *punchitem,
|
||||
float time_from_last_punch)
|
||||
const ItemStack *hand_item, float time_from_last_punch)
|
||||
{
|
||||
assert(punchitem); // pre-condition
|
||||
const ToolCapabilities *toolcap =
|
||||
&punchitem->getToolCapabilities(m_client->idef());
|
||||
&punchitem->getToolCapabilities(m_client->idef(), hand_item);
|
||||
PunchDamageResult result = getPunchDamage(
|
||||
m_armor_groups,
|
||||
toolcap,
|
||||
|
Reference in New Issue
Block a user