mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-26 18:47:57 +01:00
Catch this
This commit is contained in:
parent
dc2452231d
commit
69475f92c7
@ -189,7 +189,14 @@ public abstract class TreeFeller {
|
|||||||
Woodcutting.checkDoubleDrop(player, block);
|
Woodcutting.checkDoubleDrop(player, block);
|
||||||
|
|
||||||
byte extraData = block.getData();
|
byte extraData = block.getData();
|
||||||
|
|
||||||
|
try {
|
||||||
xp += Woodcutting.getExperienceFromLog(block);
|
xp += Woodcutting.getExperienceFromLog(block);
|
||||||
|
}
|
||||||
|
catch (IllegalArgumentException exception) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Nerf XP from jungle trees, as it was done previously
|
// TODO: Nerf XP from jungle trees, as it was done previously
|
||||||
|
|
||||||
Misc.dropItem(block.getLocation(), new ItemStack(Material.LOG, 1, extraData));
|
Misc.dropItem(block.getLocation(), new ItemStack(Material.LOG, 1, extraData));
|
||||||
|
Loading…
Reference in New Issue
Block a user