Jelajahi Sumber

Added missed checks for potatoes and carrots.

Glitchfinder 12 tahun lalu
induk
melakukan
2a20ed95fa

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