소스 검색

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

GJ 13 년 전
부모
커밋
a9024ebc6b
1개의 변경된 파일1개의 추가작업 그리고 30개의 파일을 삭제
  1. 1 30
      src/main/java/com/gmail/nossr50/skills/gathering/WoodCutting.java

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

@@ -143,37 +143,8 @@ public class WoodCutting {
                     x.setData((byte) 0x0);
                     x.setType(Material.AIR);
 
-                    Config configInstance = Config.getInstance();
-
                     /* 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) {
                     final int SAPLING_DROP_CHANCE = 10;