9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-31 21:06:47 +00:00
This commit is contained in:
XiaoMoMi
2024-08-23 14:14:21 +08:00
parent 10a2fc0826
commit 2d989c66e4
3 changed files with 10 additions and 4 deletions

View File

@@ -479,7 +479,7 @@ public class BukkitConfigManager extends ConfigManager {
String sizePair = (String) arg;
String[] split = sizePair.split("~", 2);
MathValue<Player> min = MathValue.auto(split[0]);
MathValue<Player> max = MathValue.auto(split[1]);
MathValue<Player> max = split.length == 2 ? MathValue.auto(split[1]) : MathValue.auto(split[0]);
return (item, context) -> {
double minSize = min.evaluate(context);
double maxSize = max.evaluate(context);