summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
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/org/bukkit
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/org/bukkit')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java5
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java6
2 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 00101170..f50b13e9 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -24,6 +24,7 @@ import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
+import java.util.UUID;
import java.util.logging.Level;
import java.util.logging.Logger;
import jline.ConsoleReader;
@@ -494,9 +495,9 @@ public final class CraftServer implements Server {
return worlds.get(name.toLowerCase());
}
- public World getWorld(long uid) {
+ public World getWorld(UUID uid) {
for (World world : worlds.values()) {
- if (world.getUID() == uid) {
+ if (world.getUID().equals(uid)) {
return world;
}
}
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index fac24e3e..7170a9be 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -8,6 +8,8 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Random;
+import java.util.UUID;
+
import net.minecraft.server.*;
import org.bukkit.entity.Arrow;
@@ -400,8 +402,8 @@ public class CraftWorld implements World {
return world.worldData.getSeed();
}
- public long getUID() {
- return world.worldData.getWorldUID();
+ public UUID getUID() {
+ return world.getUUID();
}
@Override