mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-25 18:17:46 +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);
|
||||
|
||||
byte extraData = block.getData();
|
||||
xp += Woodcutting.getExperienceFromLog(block);
|
||||
|
||||
try {
|
||||
xp += Woodcutting.getExperienceFromLog(block);
|
||||
}
|
||||
catch (IllegalArgumentException exception) {
|
||||
break;
|
||||
}
|
||||
|
||||
// TODO: Nerf XP from jungle trees, as it was done previously
|
||||
|
||||
Misc.dropItem(block.getLocation(), new ItemStack(Material.LOG, 1, extraData));
|
||||
|
Loading…
Reference in New Issue
Block a user