Merge pull request #183 from bm01/master

Removed redundant if statement in WoodCutting.java
This commit is contained in:
nossr50 2012-02-23 01:57:16 -08:00
commit 935e494705

View File

@ -70,10 +70,6 @@ public class WoodCutting
if(m.blockBreakSimulate(x, player))
{
if(x.getType() == Material.LOG || x.getType() == Material.LEAVES)
{
durabilityLoss++; //Damage the tool more if the Tree is larger
if(x.getType() == Material.LOG)
{
byte type = x.getData();
@ -107,6 +103,9 @@ public class WoodCutting
x.setData((byte) 0);
x.setType(Material.AIR);
//Damage the tool more if the Tree is larger
durabilityLoss++;
} else if(x.getType() == Material.LEAVES)
{
Material mat = Material.SAPLING;
@ -119,7 +118,9 @@ public class WoodCutting
//Remove the block
x.setData((byte) 0);
x.setType(Material.AIR);
}
//Damage the tool more if the Tree is larger
durabilityLoss++;
}
}
}