summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/WorldData.java
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2011-07-13 00:06:07 -0400
committerTahg <tahgtahv@gmail.com>2011-07-13 00:06:07 -0400
commitd0f904fc50c7301ead51634f8f774664e4a707b0 (patch)
treebd21b4716c8fd164829737b125e964511bf9192d /src/main/java/net/minecraft/server/WorldData.java
parent83fd8fad6997bd438e0a2f8d1bccfd6d9c1cbd56 (diff)
downloadcraftbukkit-d0f904fc50c7301ead51634f8f774664e4a707b0.tar
craftbukkit-d0f904fc50c7301ead51634f8f774664e4a707b0.tar.gz
craftbukkit-d0f904fc50c7301ead51634f8f774664e4a707b0.tar.lz
craftbukkit-d0f904fc50c7301ead51634f8f774664e4a707b0.tar.xz
craftbukkit-d0f904fc50c7301ead51634f8f774664e4a707b0.zip
uuid changes
Diffstat (limited to 'src/main/java/net/minecraft/server/WorldData.java')
-rw-r--r--src/main/java/net/minecraft/server/WorldData.java22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/main/java/net/minecraft/server/WorldData.java b/src/main/java/net/minecraft/server/WorldData.java
index bef6a94f..3e8ef772 100644
--- a/src/main/java/net/minecraft/server/WorldData.java
+++ b/src/main/java/net/minecraft/server/WorldData.java
@@ -1,7 +1,6 @@
package net.minecraft.server;
import java.util.List;
-import org.bukkit.Bukkit;
public class WorldData {
@@ -20,7 +19,6 @@ public class WorldData {
private int m;
private boolean n;
private int o;
- private long worldUID; // CraftBukkit
public WorldData(NBTTagCompound nbttagcompound) {
this.a = nbttagcompound.getLong("RandomSeed");
@@ -40,24 +38,11 @@ public class WorldData {
this.h = nbttagcompound.k("Player");
this.i = this.h.e("Dimension");
}
- // CraftBukkit start
- if (nbttagcompound.hasKey("WorldUID")) {
- this.worldUID = nbttagcompound.getLong("WorldUID");
- } else {
- this.worldUID = (System.nanoTime() << 20) + this.a;
- nbttagcompound.setLong("WorldUID", this.worldUID);
- }
-
- if (Bukkit.getServer().getWorld(worldUID) != null) {
- throw new IllegalStateException("World '" + name + "' contains a conflicting UID with existing world. Please edit its level.dat and remove WorldUID, or delete its level.dat (and lose its seed/etc).");
- }
- // CraftBukkit end
}
public WorldData(long i, String s) {
this.a = i;
this.name = s;
- this.worldUID = (System.nanoTime() << 20) + this.a; // CraftBukkit
}
public WorldData(WorldData worlddata) {
@@ -120,7 +105,6 @@ public class WorldData {
if (nbttagcompound1 != null) {
nbttagcompound.a("Player", nbttagcompound1);
}
- nbttagcompound.setLong("WorldUID", this.worldUID); // CraftBukkit
}
public long getSeed() {
@@ -208,10 +192,4 @@ public class WorldData {
public void setWeatherDuration(int i) {
this.m = i;
}
-
- // CraftBukkit start
- public long getWorldUID() {
- return this.worldUID;
- }
- // CraftBukkit end
}