From 1622bb44087b638cf23d9742daad755df844766c Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Sun, 22 May 2011 16:48:43 +0200 Subject: [PATCH] Added center to configuration with default 0,64,0 like before. --- configuration.txt | 8 ++++++++ .../java/org/dynmap/ClientConfigurationComponent.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configuration.txt b/configuration.txt index e3a12230..64f8cf44 100644 --- a/configuration.txt +++ b/configuration.txt @@ -116,6 +116,10 @@ defaultworld: world worlds: - name: world title: "World" + center: + x: 0 + y: 64 + z: 0 maps: - class: org.dynmap.flat.FlatMap name: flat @@ -147,6 +151,10 @@ worlds: maximumheight: 127 - name: nether title: "Nether" + center: + x: 0 + y: 64 + z: 0 maps: - class: org.dynmap.flat.FlatMap name: flat diff --git a/src/main/java/org/dynmap/ClientConfigurationComponent.java b/src/main/java/org/dynmap/ClientConfigurationComponent.java index d8ff6ed0..f5ae1361 100644 --- a/src/main/java/org/dynmap/ClientConfigurationComponent.java +++ b/src/main/java/org/dynmap/ClientConfigurationComponent.java @@ -26,7 +26,7 @@ public class ClientConfigurationComponent extends Component { s(wo, "name", wn.getString("name")); s(wo, "title", wn.getString("title")); s(wo, "center/x", wn.getFloat("center/x", 0.0f)); - s(wo, "center/y", wn.getFloat("center/y", 0.0f)); + s(wo, "center/y", wn.getFloat("center/y", 64.0f)); s(wo, "center/z", wn.getFloat("center/z", 0.0f)); a(t, "worlds", wo);