RC04 - Patch 0002

Changelog:
 - Renamed LuckContainer#baseValue() to getValue()
 - Changed the way files save by using the Map#values() call instead of iterating the kvp's.
 - Made the actual percentage rng value round to the closest whole number before being checked.
 - Changed Luck#defaultValue() to getDefaultValue().
This commit is contained in:
Paldiu
2022-04-09 08:38:42 -05:00
parent cbc57d5971
commit d08b240ff9
14 changed files with 22 additions and 23 deletions

View File

@ -47,7 +47,7 @@ public class PlayerConfig {
if (tempUsername != null && !tempUsername.equalsIgnoreCase(player.getName())) {
config.set("username", player.getName());
config.set("luck", plugin.handler.getLuckContainer(player).defaultValue());
config.set("luck", plugin.handler.getLuckContainer(player).getDefaultValue());
config.set("multiplier", "1.0");
save();
}