mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fix Tree Feller not working but still awarding XP.
This commit is contained in:
parent
ca8204d8f4
commit
19068dee03
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user