Fixed Tree Feller dropping too many saplings

This commit is contained in:
nossr50 2012-02-24 03:41:43 -08:00
parent e42b9db159
commit 04f13ab090

View File

@ -140,7 +140,8 @@ public class WoodCutting
item = new ItemStack(mat, 1, (short)0, (byte)(x.getData()-8)); item = new ItemStack(mat, 1, (short)0, (byte)(x.getData()-8));
//90% chance to drop sapling //90% chance to drop sapling
m.mcRandomDropItem(x.getLocation(), item, 90); if(Math.random() * 10 > 9)
m.mcRandomDropItem(x.getLocation(), item, 90);
//Remove the block //Remove the block
x.setData((byte) 0); x.setData((byte) 0);