1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-04-02 09:46:24 +02:00

Fix Tree Feller not working but still awarding XP.

This commit is contained in:
GJ 2013-02-25 08:01:06 -05:00
parent ca8204d8f4
commit 19068dee03
2 changed files with 3 additions and 2 deletions
src/main/java/com/gmail/nossr50/skills/woodcutting

@ -223,7 +223,7 @@ public final class TreeFeller {
blockState.setRawData((byte) 0x0);
blockState.setType(Material.AIR);
blockState.update();
blockState.update(true);
}
Users.getPlayer(player).beginXpGain(SkillType.WOODCUTTING, xp);

@ -146,7 +146,8 @@ public final class Woodcutting {
}
else {
Location location = blockState.getLocation();
ItemStack item = blockState.getData().toItemStack();
Tree tree = (Tree) blockState.getData();
ItemStack item = new ItemStack(Material.LOG, 1, tree.getSpecies().getData());
switch (((Tree) blockState.getData()).getSpecies()) {
case GENERIC: