Load default world spawn areas in consistent order

Dieser Commit ist enthalten in:
md_5 2019-01-05 17:05:51 +11:00
Ursprung 3a5dc78f47
Commit 5932f8a7da

Datei anzeigen

@ -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;