From e1399427f0bd3fa2c0450da0273087ac81fca3eb Mon Sep 17 00:00:00 2001 From: gmcferrin Date: Thu, 26 Jan 2012 21:57:17 -0500 Subject: [PATCH] Fixed cast issue with Repair Mastery - fixes Issue #47 --- src/main/java/com/gmail/nossr50/skills/Repair.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }