mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-23 17:09:33 +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
|
* @throws IllegalArgumentException if the object type is not supported
|
||||||
*/
|
*/
|
||||||
static <T> MathValue<T> auto(Object o) {
|
static <T> MathValue<T> auto(Object o) {
|
||||||
return auto(o, false);
|
return auto(o, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
static <T> MathValue<T> auto(Object o, boolean intFirst) {
|
static <T> MathValue<T> auto(Object o, boolean intFirst) {
|
||||||
|
|||||||
@@ -170,8 +170,8 @@ public class BukkitGameManager implements GameManager {
|
|||||||
|
|
||||||
private GameBasics getGameBasics(Section section) {
|
private GameBasics getGameBasics(Section section) {
|
||||||
return GameBasics.builder()
|
return GameBasics.builder()
|
||||||
.difficulty(MathValue.auto(section.get("difficulty", "20~80"), false))
|
.difficulty(MathValue.auto(section.get("difficulty", "20~80"), true))
|
||||||
.time(MathValue.auto(section.get("time", 15), false))
|
.time(MathValue.auto(section.get("time", 15), true))
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user