Fix handling of normalized world names

This commit is contained in:
Mike Primm 2012-03-10 15:07:13 -06:00
parent ecdb50920e
commit de4fdb2b0c
2 changed files with 2 additions and 6 deletions

View File

@ -15,7 +15,7 @@ public class BukkitWorld extends DynmapWorld {
private World world;
public BukkitWorld(World w) {
super(normalizeWorldName(w.getName()), w.getMaxHeight(), w.getSeaLevel());
super(w.getName(), w.getMaxHeight(), w.getSeaLevel());
world = w;
}
@ -93,8 +93,4 @@ public class BukkitWorld extends DynmapWorld {
public World getWorld() {
return world;
}
public static String normalizeWorldName(String n) {
return n.replace('/', '-');
}
}

View File

@ -610,7 +610,7 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
}
private static DynmapLocation toLoc(Location l) {
return new DynmapLocation(BukkitWorld.normalizeWorldName(l.getWorld().getName()), l.getBlockX(), l.getBlockY(), l.getBlockZ());
return new DynmapLocation(DynmapWorld.normalizeWorldName(l.getWorld().getName()), l.getBlockX(), l.getBlockY(), l.getBlockZ());
}
private void registerPlayerLoginListener() {