mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Fixed Tree Feller dropping too many saplings
This commit is contained in:
parent
e42b9db159
commit
04f13ab090
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user