mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-05 18:29:34 +01:00
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;
|
||||
}
|
||||
return this.keepSpawnInMemory.get();
|
||||
try {
|
||||
return this.keepSpawnInMemory.get();
|
||||
} catch (IllegalStateException e) {
|
||||
return keepSpawnFallback;
|
||||
}
|
||||
}
|
||||
|
||||
public void setKeepSpawnInMemory(boolean value) {
|
||||
|
Loading…
Reference in New Issue
Block a user