Load default world spawn areas in consistent order

This commit is contained in:
md_5 2019-01-05 17:05:51 +11:00
parent 3a5dc78f47
commit 5932f8a7da

View File

@ -15,6 +15,15 @@
public abstract class MinecraftServer implements IAsyncTaskHandler, IMojangStatistics, ICommandListener, Runnable { public abstract class MinecraftServer implements IAsyncTaskHandler, IMojangStatistics, ICommandListener, Runnable {
@@ -70,7 +78,7 @@
public final DataFixer dataConverterManager;
private String serverIp;
private int q = -1;
- public final Map<DimensionManager, WorldServer> worldServer = Maps.newIdentityHashMap();
+ public final Map<DimensionManager, WorldServer> worldServer = Maps.newLinkedHashMap(); // CraftBukkit - keep order, k+v already use identity methods
private PlayerList playerList;
private boolean isRunning = true;
private boolean isStopped;
@@ -124,7 +132,21 @@ @@ -124,7 +132,21 @@
private boolean forceUpgrade; private boolean forceUpgrade;
private float ap; private float ap;