浏览代码

Added missed checks for potatoes and carrots.

Glitchfinder 12 年之前
父节点
当前提交
2a20ed95fa
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java

+ 12 - 0
src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java

@@ -325,6 +325,18 @@ public class Herbalism {
                     }
                     break;
 
+                case CARROT:
+                    if (configInstance.getCarrotDoubleDropsEnabled()) {
+                        Misc.dropItem(location, is);
+                    }
+                    break;
+
+                case POTATO:
+                    if (configInstance.getPotatoDoubleDropsEnabled()) {
+                        Misc.dropItem(location, is);
+                    }
+                    break;
+
                 default:
                     if (customPlant) {
                         CustomBlock customBlock = ModChecks.getCustomBlock(block);