Ver código fonte

Defaulted quantities should be defaulted everywhere.

Fixes #1581
Glitchfinder 11 anos atrás
pai
commit
af578870c7

+ 4 - 0
src/main/java/com/gmail/nossr50/skills/repair/Repair.java

@@ -108,6 +108,10 @@ public class Repair {
             }
         }
 
+        if (quantity <= 0) {
+            return 2;
+        }
+
         return quantity;
     }
 }