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

View File

@ -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);

View File

@ -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: