Added center to configuration with default 0,64,0 like before.

This commit is contained in:
FrozenCow 2011-05-22 16:48:43 +02:00
parent 3fd511a8d1
commit 1622bb4408
2 changed files with 9 additions and 1 deletions

View File

@ -116,6 +116,10 @@ defaultworld: world
worlds: worlds:
- name: world - name: world
title: "World" title: "World"
center:
x: 0
y: 64
z: 0
maps: maps:
- class: org.dynmap.flat.FlatMap - class: org.dynmap.flat.FlatMap
name: flat name: flat
@ -147,6 +151,10 @@ worlds:
maximumheight: 127 maximumheight: 127
- name: nether - name: nether
title: "Nether" title: "Nether"
center:
x: 0
y: 64
z: 0
maps: maps:
- class: org.dynmap.flat.FlatMap - class: org.dynmap.flat.FlatMap
name: flat name: flat

View File

@ -26,7 +26,7 @@ public class ClientConfigurationComponent extends Component {
s(wo, "name", wn.getString("name")); s(wo, "name", wn.getString("name"));
s(wo, "title", wn.getString("title")); s(wo, "title", wn.getString("title"));
s(wo, "center/x", wn.getFloat("center/x", 0.0f)); 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)); s(wo, "center/z", wn.getFloat("center/z", 0.0f));
a(t, "worlds", wo); a(t, "worlds", wo);