From dfe83ff4979c6eed9b6eb67ff6638122b039b6ba Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 7 Nov 2013 09:13:56 -0500 Subject: [PATCH] Fix divide by zero bug Minimum Level & Minimum Quantity were accidentally flipped. --- .../java/com/gmail/nossr50/config/mods/CustomArmorConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/config/mods/CustomArmorConfig.java b/src/main/java/com/gmail/nossr50/config/mods/CustomArmorConfig.java index cc1cd32e8..9ebdb86f0 100644 --- a/src/main/java/com/gmail/nossr50/config/mods/CustomArmorConfig.java +++ b/src/main/java/com/gmail/nossr50/config/mods/CustomArmorConfig.java @@ -111,7 +111,7 @@ public class CustomArmorConfig extends ConfigLoader { durability = (short) config.getInt(armorType + "." + armorName + ".Durability", 70); } - repairables.add(RepairableFactory.getRepairable(armorMaterial, repairMaterial, repairData, repairQuantity, 0, durability, RepairItemType.ARMOR, RepairMaterialType.OTHER, 1.0)); + repairables.add(RepairableFactory.getRepairable(armorMaterial, repairMaterial, repairData, 0, repairQuantity, durability, RepairItemType.ARMOR, RepairMaterialType.OTHER, 1.0)); } materialList.add(armorMaterial);