mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-05 18:29:34 +01:00
New worlds now use the correct scale. Fixes #979.
This commit is contained in:
parent
60c0a1ab92
commit
ff22077adf
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user