Fix Mattock using vanilla damageItem. Caused Mattock to vanish on breaking.

This commit is contained in:
Bernhard Bonigl committed 2014-08-07 21:09:07 +02:00
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;
}
}