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

@ -52,6 +52,6 @@ public final class FeelingLucky extends JavaPlugin {
@Override
public void onDisable() {
Bukkit.getLogger().info("Saving all player configurations...");
configMap.forEach((u, pc) -> pc.save());
configMap.values().forEach(PlayerConfig::save);
}
}