Skip to content

Commit

Permalink
Changed sneaking on AOE tools to break blocks in AOE again. Was only …
Browse files Browse the repository at this point in the history
…supposed to not chop a whole tree with the lumber axe.
  • Loading branch information
bonii-xx committed Sep 28, 2014
1 parent 62c2956 commit 6a8c6f0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/tconstruct/library/tools/AOEHarvestTool.java
Expand Up @@ -26,10 +26,6 @@ public AOEHarvestTool(int baseDamage, int breakRadius, int breakDepth) {

@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);
Expand Down

2 comments on commit 6a8c6f0

@Vexatos
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@TherminatorX
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, what @Vexatos said

Please sign in to comment.