Skip to content

Commit eac01bb

Browse files
committed
Change y to z for start-pos config
1 parent f80e7ea commit eac01bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/config/typeserializer/Vector2iTypeSerializer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public Vector2i deserialize(Type type, ConfigurationNode node) throws Serializat
1515
var xNode = node.node("x");
1616
var yNode = node.node("y");
1717

18+
if (yNode.virtual()) yNode = node.node("z"); // fallback to z if y is not present
19+
1820
if (xNode.virtual() || yNode.virtual()) throw new SerializationException("Cannot parse Vector2i: value x or y missing");
1921

2022
return Vector2i.from(

BlueMapCommon/src/main/resources/de/bluecolored/bluemap/config/maps/map.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ sorting: ${sorting}
2222
# The position on the world where the map will be centered if you open it.
2323
# You can change this at any time.
2424
# This defaults to the world-spawn if you don't set it.
25-
#start-pos: {x:500, y:-820}
25+
#start-pos: {x:500, z:-820}
2626

2727
# The color of thy sky as a hex-color
2828
# You can change this at any time.

0 commit comments

Comments
 (0)