seed looses resolution - returned as string.
This commit is contained in:
1 parent
5f2ee1c627
commit
7f98564122
1 file changed
+1
-1
@@ -2944,7 +2944,7 @@ public class CarpetExpression
|
|||||||
|
|
||||||
this.expr.addLazyFunction("seed", -1, (c, t, lv) -> {
|
this.expr.addLazyFunction("seed", -1, (c, t, lv) -> {
|
||||||
ServerCommandSource s = ((CarpetContext)c).s;
|
ServerCommandSource s = ((CarpetContext)c).s;
|
||||||
Value ret = new NumericValue(s.getWorld().getSeed());
|
Value ret = new StringValue(Long.toString(s.getWorld().getSeed()));
|
||||||
return (cc, tt) -> ret;
|
return (cc, tt) -> ret;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user