diff options
Diffstat (limited to 'nms-patches/WorldData.patch')
-rw-r--r-- | nms-patches/WorldData.patch | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/nms-patches/WorldData.patch b/nms-patches/WorldData.patch index 568e11a8..e8480760 100644 --- a/nms-patches/WorldData.patch +++ b/nms-patches/WorldData.patch @@ -12,23 +12,23 @@ public class WorldData { -@@ -62,6 +67,7 @@ - private final Map<DimensionManager, NBTTagCompound> S; - private NBTTagCompound T; - private final GameRules U; +@@ -64,6 +69,7 @@ + private final Map<DimensionManager, NBTTagCompound> T; + private NBTTagCompound U; + private final GameRules V; + public WorldServer world; // CraftBukkit protected WorldData() { this.f = WorldType.NORMAL; -@@ -296,6 +302,7 @@ - nbttagcompound2.setBoolean("Snapshot", true); +@@ -304,6 +310,7 @@ + nbttagcompound2.setBoolean("Snapshot", false); nbttagcompound.set("Version", nbttagcompound2); - nbttagcompound.setInt("DataVersion", 1513); -+ if (org.bukkit.craftbukkit.util.CraftMagicNumbers.DATA_VERSION != 1513) throw new AssertionError(); // CraftBukkit - sentinel + nbttagcompound.setInt("DataVersion", 1519); ++ if (org.bukkit.craftbukkit.util.CraftMagicNumbers.DATA_VERSION != 1519) throw new AssertionError(); // CraftBukkit - sentinel nbttagcompound.setLong("RandomSeed", this.e); - nbttagcompound.setString("generatorName", this.f.name()); + nbttagcompound.setString("generatorName", this.f.b()); nbttagcompound.setInt("generatorVersion", this.f.getVersion()); -@@ -466,6 +473,16 @@ +@@ -478,6 +485,16 @@ } public void setThundering(boolean flag) { @@ -42,10 +42,10 @@ + } + } + // CraftBukkit end - this.y = flag; + this.z = flag; } -@@ -482,6 +499,16 @@ +@@ -494,6 +511,16 @@ } public void setStorm(boolean flag) { @@ -59,13 +59,13 @@ + } + } + // CraftBukkit end - this.w = flag; + this.x = flag; } -@@ -631,6 +658,12 @@ +@@ -643,6 +670,12 @@ public void setDifficulty(EnumDifficulty enumdifficulty) { - this.F = enumdifficulty; + this.G = enumdifficulty; + // CraftBukkit start + PacketPlayOutServerDifficulty packet = new PacketPlayOutServerDifficulty(this.getDifficulty(), this.isDifficultyLocked()); + for (EntityPlayer player : (java.util.List<EntityPlayer>) (java.util.List) world.players) { @@ -75,9 +75,9 @@ } public boolean isDifficultyLocked() { -@@ -712,4 +745,12 @@ +@@ -724,4 +757,12 @@ public void c(@Nullable NBTTagCompound nbttagcompound) { - this.T = nbttagcompound; + this.U = nbttagcompound; } + + // CraftBukkit start - Check if the name stored in NBT is the correct one |