mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Cleanup
This commit is contained in:
parent
58b01021c1
commit
8d077ff4f2
@ -144,11 +144,11 @@ public abstract class Woodcutting {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
byte blockData = block.getData();
|
byte itemData = extractLogItemData(block.getData());
|
||||||
Location location = block.getLocation();
|
Location location = block.getLocation();
|
||||||
ItemStack item = new MaterialData(Material.LOG, Woodcutting.extractLogItemData(block.getData())).toItemStack(1);
|
ItemStack item = new MaterialData(Material.LOG, itemData).toItemStack(1);
|
||||||
|
|
||||||
switch (TreeSpecies.getByData(extractLogItemData(blockData))) {
|
switch (TreeSpecies.getByData(itemData)) {
|
||||||
case GENERIC:
|
case GENERIC:
|
||||||
if (Config.getInstance().getOakDoubleDropsEnabled()) {
|
if (Config.getInstance().getOakDoubleDropsEnabled()) {
|
||||||
Misc.dropItem(location, item);
|
Misc.dropItem(location, item);
|
||||||
|
Loading…
Reference in New Issue
Block a user