mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-28 03:27:39 +01:00
Merge pull request #50 from gmcferrin/patch-3
Fixed cast issue with Repair Mastery - fixes Issue #47
This commit is contained in:
commit
59e6d9781f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user