summaryrefslogtreecommitdiffstats
path: root/nms-patches/SecondaryWorldServer.patch
blob: 4cbd0717cd75bccf5456ae2ac7735dc648e0229d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- ../work/decompile-8eb82bde//net/minecraft/server/SecondaryWorldServer.java	2014-11-28 17:43:43.369707429 +0000
+++ src/main/java/net/minecraft/server/SecondaryWorldServer.java	2014-11-28 17:38:18.000000000 +0000
@@ -4,8 +4,10 @@
 
     private WorldServer a;
 
-    public SecondaryWorldServer(MinecraftServer minecraftserver, IDataManager idatamanager, int i, WorldServer worldserver, MethodProfiler methodprofiler) {
-        super(minecraftserver, idatamanager, new SecondaryWorldData(worldserver.getWorldData()), i, methodprofiler);
+    // CraftBukkit start - Add WorldData, Environment and ChunkGenerator arguments
+    public SecondaryWorldServer(MinecraftServer minecraftserver, IDataManager idatamanager, int i, WorldServer worldserver, MethodProfiler methodprofiler, WorldData worldData, org.bukkit.World.Environment env, org.bukkit.generator.ChunkGenerator gen) {
+        super(minecraftserver, idatamanager, worldData, i, methodprofiler, env, gen);
+        // CraftBukkit end
         this.a = worldserver;
         worldserver.af().a((IWorldBorderListener) (new SecondaryWorldServerInnerClass1(this)));
     }