mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Fix division through 0 and remove some testing code
This commit is contained in:
1 parent
a0c0358a6b
commit
263efb8b11
2 files changed
+8
-9
No files matched your search
@@ -521,8 +521,7 @@ public class AbilityHelper
|
||||
|
||||
if (event.getResult() == Result.ALLOW)
|
||||
{
|
||||
stack.damageItem(1, player);
|
||||
//damageTool(stack, 1, player, false);
|
||||
damageTool(stack, 1, player, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -540,8 +539,7 @@ public class AbilityHelper
|
||||
else
|
||||
{
|
||||
world.setBlock(x, y, z, block1);
|
||||
stack.damageItem(1, player);
|
||||
//damageTool(stack, 1, player, false);
|
||||
damageTool(stack, 1, player, false);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user