From c8f68670f5d5b7d2733fbf2e50c8825c5138ba44 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 2 Oct 2018 20:52:57 +1000 Subject: Save server version --- nms-patches/WorldData.patch | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/nms-patches/WorldData.patch b/nms-patches/WorldData.patch index f13eb7d8..256a27e0 100644 --- a/nms-patches/WorldData.patch +++ b/nms-patches/WorldData.patch @@ -28,7 +28,15 @@ nbttagcompound.setLong("RandomSeed", this.e); nbttagcompound.setString("generatorName", this.f.b()); nbttagcompound.setInt("generatorVersion", this.f.getVersion()); -@@ -478,6 +485,16 @@ +@@ -389,6 +396,7 @@ + nbttagcompound.set("CustomBossEvents", this.U); + } + ++ nbttagcompound.setString("Bukkit.Version", Bukkit.getName() + "/" + Bukkit.getVersion() + "/" + Bukkit.getBukkitVersion()); // CraftBukkit + } + + public long getSeed() { +@@ -478,6 +486,16 @@ } public void setThundering(boolean flag) { @@ -45,7 +53,7 @@ this.z = flag; } -@@ -494,6 +511,16 @@ +@@ -494,6 +512,16 @@ } public void setStorm(boolean flag) { @@ -62,7 +70,7 @@ this.x = flag; } -@@ -643,6 +670,12 @@ +@@ -643,6 +671,12 @@ public void setDifficulty(EnumDifficulty enumdifficulty) { this.G = enumdifficulty; @@ -75,7 +83,7 @@ } public boolean isDifficultyLocked() { -@@ -724,4 +757,12 @@ +@@ -724,4 +758,12 @@ public void c(@Nullable NBTTagCompound nbttagcompound) { this.U = nbttagcompound; } -- cgit v1.2.3