Catch this

This commit is contained in:
bm01 2013-01-22 22:24:53 +01:00
parent dc2452231d
commit 69475f92c7

View File

@ -189,7 +189,14 @@ public abstract class TreeFeller {
Woodcutting.checkDoubleDrop(player, block);
byte extraData = block.getData();
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));