mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-02-17 20:31:37 +01:00
Fix handling of normalized world names
This commit is contained in:
parent
ecdb50920e
commit
de4fdb2b0c
@ -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('/', '-');
|
||||
}
|
||||
}
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user