mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 12:19:48 +00:00
Fix Mattock using vanilla damageItem. Caused Mattock to vanish on breaking.
This commit is contained in:
1 parent
b38c8a0ab9
commit
e10c5d2770
1 file changed
+2
-2
@@ -491,7 +491,7 @@ public class AbilityHelper
|
||||
|
||||
if (event.getResult() == Result.ALLOW)
|
||||
{
|
||||
stack.damageItem(1, player);
|
||||
damageTool(stack, 1, player, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -509,7 +509,7 @@ public class AbilityHelper
|
||||
else
|
||||
{
|
||||
world.setBlock(x, y, z, block1);
|
||||
stack.damageItem(1, player);
|
||||
damageTool(stack, 1, player, false);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user