Parcourir la source

Added missed checks for potatoes and carrots.

Glitchfinder il y a 12 ans
Parent
commit
2a20ed95fa
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  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);