diff --git a/src/main/java/com/gmail/nossr50/skills/Repair.java b/src/main/java/com/gmail/nossr50/skills/Repair.java index cc6f396c2..5e5cb4e62 100644 --- a/src/main/java/com/gmail/nossr50/skills/Repair.java +++ b/src/main/java/com/gmail/nossr50/skills/Repair.java @@ -469,9 +469,9 @@ public class Repair { } public static short repairCalculate(Player player, short durability, int ramt){ PlayerProfile PP = Users.getProfile(player); - float bonus = (PP.getSkillLevel(SkillType.REPAIR) / 500); + float bonus = (float)(PP.getSkillLevel(SkillType.REPAIR)) / 500; bonus = (ramt * bonus); - ramt = ramt+=bonus; + ramt+=bonus; if(checkPlayerProcRepair(player)){ ramt = (short) (ramt * 2); }