AOE tools now behave like normal tools while sneaking.

This commit is contained in:
Bernhard Bonigl committed 2014-09-23 17:54:56 +02:00
1 parent cb7ea6f852
commit 570edc802e
2 files changed
+5 -6

No files matched your search

@@ -85,7 +85,7 @@ public class LumberAxe extends AOEHarvestTool
@Override
public boolean onBlockStartBreak (ItemStack stack, int x, int y, int z, EntityPlayer player)
{
if (!stack.hasTagCompound())
if (!stack.hasTagCompound() || player.isSneaking())
return super.onBlockStartBreak(stack, x, y, z, player);
World world = player.worldObj;