From af578870c70b5c350e41dd079a35296f79b86f6b Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Sun, 3 Nov 2013 09:40:04 -0800 Subject: [PATCH] Defaulted quantities should be defaulted everywhere. Fixes #1581 --- src/main/java/com/gmail/nossr50/skills/repair/Repair.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/skills/repair/Repair.java b/src/main/java/com/gmail/nossr50/skills/repair/Repair.java index b91f9bd99..349a3e524 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/Repair.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/Repair.java @@ -108,6 +108,10 @@ public class Repair { } } + if (quantity <= 0) { + return 2; + } + return quantity; } }