mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +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){
|
public static short repairCalculate(Player player, short durability, int ramt){
|
||||||
PlayerProfile PP = Users.getProfile(player);
|
PlayerProfile PP = Users.getProfile(player);
|
||||||
float bonus = (PP.getSkillLevel(SkillType.REPAIR) / 500);
|
float bonus = (float)(PP.getSkillLevel(SkillType.REPAIR)) / 500;
|
||||||
bonus = (ramt * bonus);
|
bonus = (ramt * bonus);
|
||||||
ramt = ramt+=bonus;
|
ramt+=bonus;
|
||||||
if(checkPlayerProcRepair(player)){
|
if(checkPlayerProcRepair(player)){
|
||||||
ramt = (short) (ramt * 2);
|
ramt = (short) (ramt * 2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user