Skip to content

Commit 015b383

Browse files
committed
Fix bug with dimensions not being detected correctly in bukkit
1 parent 5421f95 commit 015b383

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

BlueMapBukkit/src/main/java/de/bluecolored/bluemap/bukkit/BukkitPlugin.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ public void unregisterAllListeners() {
7878

7979
@Override
8080
public UUID getUUIDForWorld(File worldFolder) throws IOException {
81+
//if it is a dimension folder
82+
if (!new File(worldFolder, "level.dat").exists()) {
83+
worldFolder = worldFolder.getParentFile();
84+
}
85+
8186
final File normalizedWorldFolder = worldFolder.getCanonicalFile();
8287

8388
Future<UUID> futureUUID;

BlueMapBukkit/src/main/resources/bluemap-bukkit.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ maps: [
134134
{
135135
id: "end"
136136
name: "End"
137-
world: "world_the_end"
137+
world: "world_the_end/DIM1"
138138

139139
# We dont want a blue sky in the end
140140
skyColor: "#080010"
@@ -150,7 +150,7 @@ maps: [
150150
{
151151
id: "nether"
152152
name: "Nether"
153-
world: "world_nether"
153+
world: "world_nether/DIM-1"
154154

155155
skyColor: "#290000"
156156

0 commit comments

Comments
 (0)