Skip to content

Commit bf87fa8

Browse files
committed
fixed #2
1 parent f49adb9 commit bf87fa8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • src/main/java/com/devdyna/cakesticklib/setup

src/main/java/com/devdyna/cakesticklib/setup/Config.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static void register(ModContainer c) {
5555
"min_fe_cost", 5);
5656

5757
MACHINE_MINIMAL_FLUID_COST = number("Minimal Fluid cost based on upgrade installed",
58-
"min_mb_cost", 0);
58+
"min_mb_cost", 1);
5959
MACHINE_MAXIMAL_LUCK = number("Maximal Secondary Chance based on upgrade installed",
6060
"max_luck", 100);
6161

@@ -104,16 +104,16 @@ private static BooleanValue bool(String c, String k) {
104104
return bool(c, k, false);
105105
}
106106

107-
private static IntValue number(String c, String k, int d, int mn, int mx) {
107+
private static IntValue number(String c, String k, int d, int min, int max) {
108108
return qCOMMON
109109
.comment(c)
110-
.defineInRange(k, d, mn, mx);
110+
.defineInRange(k, d, (d < min ? d : min), (d > max ? d : max));
111111
}
112112

113113
private static DoubleValue numberFloat(String c, String k, double d, double min, double max) {
114114
return qCOMMON
115115
.comment(c)
116-
.defineInRange(k, d, min, max);
116+
.defineInRange(k, d, (d < min ? d : min), (d > max ? d : max));
117117
}
118118

119119
/**

0 commit comments

Comments
 (0)