keepSpawnInMemory will use fallback value in more scenarios. Fixes #1392.
This commit is contained in:
parent
34c8b7cf0b
commit
1c2514d5db
|
@ -536,7 +536,11 @@ public class WorldProperties extends SerializationConfig {
|
|||
if (keepSpawnInMemory == null) {
|
||||
return keepSpawnFallback;
|
||||
}
|
||||
try {
|
||||
return this.keepSpawnInMemory.get();
|
||||
} catch (IllegalStateException e) {
|
||||
return keepSpawnFallback;
|
||||
}
|
||||
}
|
||||
|
||||
public void setKeepSpawnInMemory(boolean value) {
|
||||
|
|
Loading…
Reference in New Issue