New worlds now use the correct scale. Fixes #979.

This commit is contained in:
Jeremy Wood 2012-11-27 14:09:33 -05:00
parent 60c0a1ab92
commit ff22077adf
2 changed files with 4 additions and 3 deletions

View File

@ -62,11 +62,12 @@ public class WorldProperties extends SerializationConfig {
super();
}
public WorldProperties(boolean fixSpawn) {
public WorldProperties(final boolean fixSpawn, final Environment environment) {
super();
if (!fixSpawn) {
this.adjustSpawn = false;
}
setScaling(getDefaultScale(environment));
}
void setMVWorld(MVWorld world) {
@ -314,7 +315,7 @@ public class WorldProperties extends SerializationConfig {
this.alias = new String();
this.color = EnglishChatColor.WHITE;
this.style = EnglishChatStyle.NORMAL;
this.scale = getDefaultScale(environment);
this.scale = 1D;
this.respawnWorld = new String();
this.allowWeather = true;
this.spawning = new SpawnSettings();

View File

@ -209,7 +209,7 @@ public class WorldManager implements MVWorldManager {
// Important: doLoad() needs the MVWorld-object in worldsFromTheConfig
if (!worldsFromTheConfig.containsKey(name)) {
WorldProperties props = new WorldProperties(useSpawnAdjust);
WorldProperties props = new WorldProperties(useSpawnAdjust, env);
worldsFromTheConfig.put(name, props);
}