mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-12 10:45:50 -07:00
Okay, back to arbitrary offsets!
This commit is contained in:
@@ -37,6 +37,7 @@ public class WorldMap extends WorldMapBase {
|
|||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
byte dimension = nbttagcompound.c("dimension");
|
byte dimension = nbttagcompound.c("dimension");
|
||||||
|
|
||||||
|
if (dimension >= 10) {
|
||||||
this.worldUID = nbttagcompound.getLong("WorldUID");
|
this.worldUID = nbttagcompound.getLong("WorldUID");
|
||||||
CraftWorld world = (CraftWorld) server.getWorld(this.worldUID);
|
CraftWorld world = (CraftWorld) server.getWorld(this.worldUID);
|
||||||
// Check if the stored world details are correct.
|
// Check if the stored world details are correct.
|
||||||
@@ -47,6 +48,7 @@ public class WorldMap extends WorldMapBase {
|
|||||||
} else {
|
} else {
|
||||||
dimension = (byte) world.getHandle().dimension;
|
dimension = (byte) world.getHandle().dimension;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.map = dimension;
|
this.map = dimension;
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
@@ -393,7 +393,7 @@ public final class CraftServer implements Server {
|
|||||||
converter.convert(name, new ConvertProgressUpdater(console));
|
converter.convert(name, new ConvertProgressUpdater(console));
|
||||||
}
|
}
|
||||||
|
|
||||||
int dimension = Environment.values().length + 1 + console.worlds.size();
|
int dimension = 10 + console.worlds.size();
|
||||||
WorldServer internal = new WorldServer(console, new ServerNBTManager(new File("."), name, true), name, dimension, seed, environment, generator);
|
WorldServer internal = new WorldServer(console, new ServerNBTManager(new File("."), name, true), name, dimension, seed, environment, generator);
|
||||||
internal.worldMaps = console.worlds.get(0).worldMaps;
|
internal.worldMaps = console.worlds.get(0).worldMaps;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user