forked from mirror/BlueMap
Change y to z for start-pos config
This commit is contained in:
parent
f80e7ea546
commit
eac01bb06e
@ -15,6 +15,8 @@ public Vector2i deserialize(Type type, ConfigurationNode node) throws Serializat
|
||||
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(
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user