Fixed bug with getting NO logs from Tree Feller if double drops were

disabled in the config file.
This commit is contained in:
GJ 2012-05-01 15:25:28 -04:00
parent 33bc2d8a6b
commit a9024ebc6b

View File

@ -143,38 +143,9 @@ public class WoodCutting {
x.setData((byte) 0x0); x.setData((byte) 0x0);
x.setType(Material.AIR); x.setType(Material.AIR);
Config configInstance = Config.getInstance();
/* Drop the block */ /* Drop the block */
switch (species) {
case GENERIC:
if (configInstance.getOakDoubleDropsEnabled()) {
Misc.mcDropItem(x.getLocation(), item); Misc.mcDropItem(x.getLocation(), item);
} }
break;
case REDWOOD:
if (configInstance.getSpruceDoubleDropsEnabled()) {
Misc.mcDropItem(x.getLocation(), item);
}
break;
case BIRCH:
if (configInstance.getBirchDoubleDropsEnabled()) {
Misc.mcDropItem(x.getLocation(), item);
}
break;
case JUNGLE:
if (configInstance.getJungleDoubleDropsEnabled()) {
Misc.mcDropItem(x.getLocation(), item);
}
break;
default:
break;
}
}
else if (x.getType() == Material.LEAVES) { else if (x.getType() == Material.LEAVES) {
final int SAPLING_DROP_CHANCE = 10; final int SAPLING_DROP_CHANCE = 10;