mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-27 19:17:44 +01:00
Merge branch 'master' of github.com:mcMMO-Dev/mcMMO
This commit is contained in:
commit
86166a58e1
@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user