2
0
Эх сурвалжийг харах

Fixed bug with getting NO logs from Tree Feller if double drops were
disabled in the config file.

GJ 13 жил өмнө
parent
commit
a9024ebc6b

+ 1 - 30
src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java

@@ -143,37 +143,8 @@ 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);
-                        }
-                        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;
-                    }
+                    Misc.mcDropItem(x.getLocation(), item);
                 }
                 }
                 else if (x.getType() == Material.LEAVES) {
                 else if (x.getType() == Material.LEAVES) {
                     final int SAPLING_DROP_CHANCE = 10;
                     final int SAPLING_DROP_CHANCE = 10;