Use rounded value to match format in /f powerboost
This commit is contained in:
parent
0cec1f5ec3
commit
190c2d793f
@ -61,9 +61,10 @@ public class CmdPowerBoost extends FCommand {
|
||||
target = TL.COMMAND_POWERBOOST_FACTION.format(targetFaction.getTag());
|
||||
}
|
||||
|
||||
msg(TL.COMMAND_POWERBOOST_BOOST, target, targetPower);
|
||||
int roundedPower = (int)Math.round(targetPower);
|
||||
msg(TL.COMMAND_POWERBOOST_BOOST, target, roundedPower);
|
||||
if (!senderIsConsole) {
|
||||
P.p.log(TL.COMMAND_POWERBOOST_BOOSTLOG.toString(), fme.getName(), target, targetPower);
|
||||
P.p.log(TL.COMMAND_POWERBOOST_BOOSTLOG.toString(), fme.getName(), target, roundedPower);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user