From d5fea5fd0de4c41b7de3ba153acdecf56fa005cd Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 2 Aug 2012 23:47:41 -0400 Subject: [PATCH] Fixed translation issue breaking custom world generation. Fixes BUKKIT-1975 --- src/main/java/net/minecraft/server/WorldServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java index ab986043b1..dd79681102 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -39,7 +39,7 @@ public class WorldServer extends World implements org.bukkit.BlockChangeDelegate public final int dimension; public WorldServer(MinecraftServer minecraftserver, IDataManager idatamanager, String s, int i, WorldSettings worldsettings, MethodProfiler methodprofiler, org.bukkit.World.Environment env, org.bukkit.generator.ChunkGenerator gen) { - super(idatamanager, s, worldsettings, WorldProvider.byDimension(i), methodprofiler, gen, env); + super(idatamanager, s, worldsettings, WorldProvider.byDimension(env.getId()), methodprofiler, gen, env); this.dimension = i; this.pvpMode = minecraftserver.getPvP(); // CraftBukkit end