23w32a
This commit is contained in:
1 parent
4421967093
commit
7ff55b2373
2 files changed
+5
-3
No files matched your search
+1
-1
@@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check https://fabricmc.net/develop/
|
# check https://fabricmc.net/develop/
|
||||||
minecraft_version=23w31a
|
minecraft_version=23w32a
|
||||||
loader_version=0.14.22
|
loader_version=0.14.22
|
||||||
jsr305_version=3.0.2
|
jsr305_version=3.0.2
|
||||||
fabric_version=0.83.0+1.20.1
|
fabric_version=0.83.0+1.20.1
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package carpet.script.value;
|
|||||||
import carpet.script.exception.InternalExpressionException;
|
import carpet.script.exception.InternalExpressionException;
|
||||||
import carpet.script.exception.ThrowStatement;
|
import carpet.script.exception.ThrowStatement;
|
||||||
import carpet.script.exception.Throwables;
|
import carpet.script.exception.Throwables;
|
||||||
import carpet.script.external.Carpet;
|
|
||||||
import carpet.script.external.Vanilla;
|
import carpet.script.external.Vanilla;
|
||||||
import carpet.script.utils.Colors;
|
import carpet.script.utils.Colors;
|
||||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
||||||
@@ -91,7 +90,10 @@ public class ValueConversions
|
|||||||
|
|
||||||
public static <T extends Number> Value of(MinMaxBounds<T> range)
|
public static <T extends Number> Value of(MinMaxBounds<T> range)
|
||||||
{
|
{
|
||||||
return ListValue.of(NumericValue.of(range.getMin()), NumericValue.of(range.getMax()));
|
return ListValue.of(
|
||||||
|
range.min().map(NumericValue::of).orElse(Value.NULL),
|
||||||
|
range.min().map(NumericValue::of).orElse(Value.NULL)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|||||||
Reference in new issue
Block a user