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:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user