Skip to content

Commit 53093a4

Browse files
committed
Fix map name being compared instead of map-id. Fixes #51
1 parent a2cefd7 commit 53093a4

File tree

1 file changed

+1
-1
lines changed
  • BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/commands

1 file changed

+1
-1
lines changed

BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/commands/Commands.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ private Optional<World> parseWorld(String worldName) {
255255

256256
private Optional<MapType> parseMap(String mapId) {
257257
for (MapType map : plugin.getMapTypes()) {
258-
if (map.getName().equalsIgnoreCase(mapId)) {
258+
if (map.getId().equalsIgnoreCase(mapId)) {
259259
return Optional.of(map);
260260
}
261261
}

0 commit comments

Comments
 (0)