Change y to z for start-pos config

This commit is contained in:
Lukas Rieger (Blue) 2022-08-18 16:08:33 +02:00
parent f80e7ea546
commit eac01bb06e
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@ public class Vector2iTypeSerializer implements TypeSerializer<Vector2i> {
var xNode = node.node("x");
var yNode = node.node("y");
if (yNode.virtual()) yNode = node.node("z"); // fallback to z if y is not present
if (xNode.virtual() || yNode.virtual()) throw new SerializationException("Cannot parse Vector2i: value x or y missing");
return Vector2i.from(

View File

@ -22,7 +22,7 @@ sorting: ${sorting}
# The position on the world where the map will be centered if you open it.
# You can change this at any time.
# This defaults to the world-spawn if you don't set it.
#start-pos: {x:500, y:-820}
#start-pos: {x:500, z:-820}
# The color of thy sky as a hex-color
# You can change this at any time.