mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-14 19:44:42 +02:00
Begin trying to remove newly-deprecated "magic numbers"
This commit is contained in:
@ -103,9 +103,9 @@ public final class Woodcutting {
|
||||
else {
|
||||
Location location = blockState.getLocation();
|
||||
Tree tree = (Tree) blockState.getData();
|
||||
ItemStack item = new ItemStack(Material.LOG, 1, tree.getSpecies().getData());
|
||||
ItemStack item = tree.toItemStack(1);
|
||||
|
||||
switch (((Tree) blockState.getData()).getSpecies()) {
|
||||
switch (tree.getSpecies()) {
|
||||
case GENERIC:
|
||||
if (Config.getInstance().getOakDoubleDropsEnabled()) {
|
||||
Misc.dropItem(location, item);
|
||||
|
Reference in New Issue
Block a user