Changed sneaking on AOE tools to break blocks in AOE again. Was only supposed to not chop a whole tree with the lumber axe.

This commit is contained in:
Bernhard Bonigl committed 2014-09-28 17:36:40 +02:00
1 parent 62c2956012
commit 6a8c6f0f32
1 file changed
-4
@@ -26,10 +26,6 @@ public abstract class AOEHarvestTool extends HarvestTool {
@Override
public boolean onBlockStartBreak(ItemStack stack, int x, int y, int z, EntityPlayer player) {
// sneaking == regular blockbreak
if(player.isSneaking())
return super.onBlockStartBreak(stack, x,y,z, player);
// only effective materials matter. We don't want to aoe when beraking dirt with a hammer.
Block block = player.worldObj.getBlock(x,y,z);
int meta = player.worldObj.getBlockMetadata(x,y,z);