mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Fixed saplings dropping WAY too often from Woodcutting.
This commit is contained in:
parent
5ae15bfb71
commit
cab9850fe3
@ -141,7 +141,7 @@ public class WoodCutting {
|
|||||||
m.mcDropItem(x.getLocation(), item);
|
m.mcDropItem(x.getLocation(), item);
|
||||||
}
|
}
|
||||||
else if (x.getType() == Material.LEAVES) {
|
else if (x.getType() == Material.LEAVES) {
|
||||||
final int SAPLING_DROP_CHANCE = 90;
|
final int SAPLING_DROP_CHANCE = 10;
|
||||||
|
|
||||||
item = new ItemStack(Material.SAPLING, 1, (short) 0, (byte) (x.getData() & 3)); //Drop the right type of sapling
|
item = new ItemStack(Material.SAPLING, 1, (short) 0, (byte) (x.getData() & 3)); //Drop the right type of sapling
|
||||||
m.mcRandomDropItem(x.getLocation(), item, SAPLING_DROP_CHANCE);
|
m.mcRandomDropItem(x.getLocation(), item, SAPLING_DROP_CHANCE);
|
||||||
|
Loading…
Reference in New Issue
Block a user