forked from xjboss/KCauldronX
Initial commit (Forge 1291).
This commit is contained in:
36
patches/net/minecraft/world/WorldServerMulti.java.patch
Normal file
36
patches/net/minecraft/world/WorldServerMulti.java.patch
Normal file
@ -0,0 +1,36 @@
|
||||
--- ../src-base/minecraft/net/minecraft/world/WorldServerMulti.java
|
||||
+++ ../src-work/minecraft/net/minecraft/world/WorldServerMulti.java
|
||||
@@ -9,6 +9,17 @@
|
||||
{
|
||||
private static final String __OBFID = "CL_00001430";
|
||||
|
||||
+ // CraftBukkit start - Add Environment and ChunkGenerator arguments
|
||||
+ public WorldServerMulti(MinecraftServer p_i45283_1_, ISaveHandler p_i45283_2_, String p_i45283_3_, int p_i45283_4_, WorldSettings p_i45283_5_, WorldServer p_i45283_6_, Profiler p_i45283_7_, org.bukkit.World.Environment env, org.bukkit.generator.ChunkGenerator gen)
|
||||
+ {
|
||||
+ super(p_i45283_1_, p_i45283_2_, p_i45283_3_, p_i45283_4_, p_i45283_5_, p_i45283_7_, env, gen);
|
||||
+ // CraftBukkit end
|
||||
+ this.mapStorage = p_i45283_6_.mapStorage;
|
||||
+ this.worldScoreboard = p_i45283_6_.getScoreboard();
|
||||
+ //this.worldInfo = new DerivedWorldInfo(p_i45283_6_.getWorldInfo());
|
||||
+ }
|
||||
+
|
||||
+ // Cauldron start - vanilla compatibility
|
||||
public WorldServerMulti(MinecraftServer p_i45283_1_, ISaveHandler p_i45283_2_, String p_i45283_3_, int p_i45283_4_, WorldSettings p_i45283_5_, WorldServer p_i45283_6_, Profiler p_i45283_7_)
|
||||
{
|
||||
super(p_i45283_1_, p_i45283_2_, p_i45283_3_, p_i45283_4_, p_i45283_5_, p_i45283_7_);
|
||||
@@ -16,9 +27,15 @@
|
||||
this.worldScoreboard = p_i45283_6_.getScoreboard();
|
||||
this.worldInfo = new DerivedWorldInfo(p_i45283_6_.getWorldInfo());
|
||||
}
|
||||
+ // Cauldron end
|
||||
|
||||
+ /* we handle all saving including perWorldStorage in WorldServer.saveLevel. This needs to be disabled since we follow
|
||||
+ // bukkit's world saving methods by using a seperate save handler for each world. Each world folder needs to generate a corresponding
|
||||
+ // level.dat for plugins that require it such as MultiWorld.
|
||||
protected void saveLevel() throws MinecraftException
|
||||
{
|
||||
this.perWorldStorage.saveAllData();
|
||||
}
|
||||
+ */
|
||||
+ // Cauldron end
|
||||
}
|
Reference in New Issue
Block a user