This commit is contained in:
bm01 2013-01-24 15:37:02 +01:00
parent 58b01021c1
commit 8d077ff4f2

View File

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