2
0
Эх сурвалжийг харах

Fixed Tree Feller dropping too many saplings

nossr50 13 жил өмнө
parent
commit
04f13ab090

+ 2 - 1
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));
                     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);