Load default world spawn areas in consistent order

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-01-05 17:05:51 +11:00
parent cf22e510c4
commit 6ec5377de8

View file

@ -15,6 +15,15 @@
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 @@
private boolean forceUpgrade;
private float ap;