9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-19 15:09:24 +00:00

fix ranged value

This commit is contained in:
XiaoMoMi
2025-05-27 22:59:23 +08:00
parent b7f79ac519
commit bb104f6ee5
2 changed files with 3 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ public interface MathValue<T> {
* @throws IllegalArgumentException if the object type is not supported
*/
static <T> MathValue<T> auto(Object o) {
return auto(o, false);
return auto(o, true);
}
static <T> MathValue<T> auto(Object o, boolean intFirst) {

View File

@@ -170,8 +170,8 @@ public class BukkitGameManager implements GameManager {
private GameBasics getGameBasics(Section section) {
return GameBasics.builder()
.difficulty(MathValue.auto(section.get("difficulty", "20~80"), false))
.time(MathValue.auto(section.get("time", 15), false))
.difficulty(MathValue.auto(section.get("difficulty", "20~80"), true))
.time(MathValue.auto(section.get("time", 15), true))
.build();
}