mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
Fixed cast issue with Repair Mastery - fixes Issue #47
This commit is contained in:
parent
80cc22efff
commit
e1399427f0
@ -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