diff options
author | Zach Brown <[email protected]> | 2018-11-27 18:40:56 -0500 |
---|---|---|
committer | Zach Brown <[email protected]> | 2018-11-27 18:40:56 -0500 |
commit | b82359ef5ae2ac4a3d0387ac1e7eb4d8910ec642 (patch) | |
tree | 4e84988e335380fffba4db767fc0920312e70034 | |
parent | cfe5920cab817fbf4de49f3e0b08d02808384bb0 (diff) | |
download | Paper-b82359ef5ae2ac4a3d0387ac1e7eb4d8910ec642.tar.gz Paper-b82359ef5ae2ac4a3d0387ac1e7eb4d8910ec642.zip |
Persist ArmorStand canTick API value across restarts
-rw-r--r-- | Spigot-Server-Patches/0351-Allow-disabling-armour-stand-ticking.patch | 25 | ||||
-rw-r--r-- | Spigot-Server-Patches/0354-Improve-death-events.patch | 6 |
2 files changed, 25 insertions, 6 deletions
diff --git a/Spigot-Server-Patches/0351-Allow-disabling-armour-stand-ticking.patch b/Spigot-Server-Patches/0351-Allow-disabling-armour-stand-ticking.patch index 7dd70f9982..a5dfb35bc4 100644 --- a/Spigot-Server-Patches/0351-Allow-disabling-armour-stand-ticking.patch +++ b/Spigot-Server-Patches/0351-Allow-disabling-armour-stand-ticking.patch @@ -1,4 +1,4 @@ -From 1ddf939a1e11ae48190c26bedd764bfa0c382fee Mon Sep 17 00:00:00 2001 +From 6b1beefbc59949532cb4e66f634583d3fadc42a7 Mon Sep 17 00:00:00 2001 From: kashike <[email protected]> Date: Wed, 15 Aug 2018 01:26:09 -0700 Subject: [PATCH] Allow disabling armour stand ticking @@ -20,7 +20,7 @@ index c3bd8269..ed147535 100644 + } } diff --git a/src/main/java/net/minecraft/server/EntityArmorStand.java b/src/main/java/net/minecraft/server/EntityArmorStand.java -index df0d66ad..dca49707 100644 +index df0d66ad..c7215888 100644 --- a/src/main/java/net/minecraft/server/EntityArmorStand.java +++ b/src/main/java/net/minecraft/server/EntityArmorStand.java @@ -51,6 +51,7 @@ public class EntityArmorStand extends EntityLiving { @@ -39,7 +39,26 @@ index df0d66ad..dca49707 100644 } public EntityArmorStand(World world, double d0, double d1, double d2) { -@@ -568,6 +570,7 @@ public class EntityArmorStand extends EntityLiving { +@@ -211,6 +213,7 @@ public class EntityArmorStand extends EntityLiving { + } + + nbttagcompound.set("Pose", this.C()); ++ nbttagcompound.setBoolean("Paper.CanTick", this.canTick); // Paper - persist no tick setting + } + + public void a(NBTTagCompound nbttagcompound) { +@@ -242,6 +245,10 @@ public class EntityArmorStand extends EntityLiving { + this.setMarker(nbttagcompound.getBoolean("Marker")); + this.bC = !this.isMarker(); + this.noclip = this.isNoGravity(); ++ // Paper - persist no tick ++ if (nbttagcompound.hasKey("Paper.CanTick")) { ++ this.canTick = nbttagcompound.getBoolean("Paper.CanTick"); ++ } + NBTTagCompound nbttagcompound1 = nbttagcompound.getCompound("Pose"); + + this.g(nbttagcompound1); +@@ -568,6 +575,7 @@ public class EntityArmorStand extends EntityLiving { } public void B_() { diff --git a/Spigot-Server-Patches/0354-Improve-death-events.patch b/Spigot-Server-Patches/0354-Improve-death-events.patch index 26c42ec6b7..e5ee2ddc46 100644 --- a/Spigot-Server-Patches/0354-Improve-death-events.patch +++ b/Spigot-Server-Patches/0354-Improve-death-events.patch @@ -1,4 +1,4 @@ -From 059e0ddf477c3fcf06ac7be0d347fb082c730573 Mon Sep 17 00:00:00 2001 +From 2e5245ebec442569e203bd86dcc65a67539ad223 Mon Sep 17 00:00:00 2001 From: Phoenix616 <[email protected]> Date: Tue, 21 Aug 2018 01:39:35 +0100 Subject: [PATCH] Improve death events @@ -55,10 +55,10 @@ index 3a2ff25e..d44c55d8 100644 return SoundCategory.NEUTRAL; } diff --git a/src/main/java/net/minecraft/server/EntityArmorStand.java b/src/main/java/net/minecraft/server/EntityArmorStand.java -index dca49707..454c1e7d 100644 +index c7215888..90749924 100644 --- a/src/main/java/net/minecraft/server/EntityArmorStand.java +++ b/src/main/java/net/minecraft/server/EntityArmorStand.java -@@ -641,7 +641,8 @@ public class EntityArmorStand extends EntityLiving { +@@ -646,7 +646,8 @@ public class EntityArmorStand extends EntityLiving { } public void killEntity() { |