فهرست منبع

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