keepSpawnInMemory will use fallback value in more scenarios. Fixes #1392.

This commit is contained in:
Jeremy Wood 2014-03-18 10:07:24 -04:00
parent 34c8b7cf0b
commit 1c2514d5db
1 changed files with 5 additions and 1 deletions

View File

@ -536,7 +536,11 @@ public class WorldProperties extends SerializationConfig {
if (keepSpawnInMemory == null) {
return keepSpawnFallback;
}
return this.keepSpawnInMemory.get();
try {
return this.keepSpawnInMemory.get();
} catch (IllegalStateException e) {
return keepSpawnFallback;
}
}
public void setKeepSpawnInMemory(boolean value) {