No longer use an arbitrary offset to locate the correct map

This commit is contained in:
Dinnerbone 2011-07-07 20:22:03 +01:00
parent 83abbfe4d6
commit 2564043882

View File

@ -37,7 +37,6 @@ 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.
@ -48,7 +47,6 @@ 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