From 04f13ab09065dcb1fe88778c3476d3419c2edd54 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Fri, 24 Feb 2012 03:41:43 -0800 Subject: [PATCH] Fixed Tree Feller dropping too many saplings --- src/main/java/com/gmail/nossr50/skills/WoodCutting.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/WoodCutting.java b/src/main/java/com/gmail/nossr50/skills/WoodCutting.java index cd9c768f0..223bba610 100644 --- a/src/main/java/com/gmail/nossr50/skills/WoodCutting.java +++ b/src/main/java/com/gmail/nossr50/skills/WoodCutting.java @@ -140,7 +140,8 @@ public class WoodCutting item = new ItemStack(mat, 1, (short)0, (byte)(x.getData()-8)); //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 x.setData((byte) 0);