From 540be515146e083040ae0506220eab3104fc6466 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 29 Jan 2021 20:00:43 +1100 Subject: [PATCH] Re-add missing StriderTemperatureChangeEvent By: md_5 --- paper-server/nms-patches/EntityStrider.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 paper-server/nms-patches/EntityStrider.patch diff --git a/paper-server/nms-patches/EntityStrider.patch b/paper-server/nms-patches/EntityStrider.patch new file mode 100644 index 0000000000..317050363d --- /dev/null +++ b/paper-server/nms-patches/EntityStrider.patch @@ -0,0 +1,16 @@ +--- a/net/minecraft/server/EntityStrider.java ++++ b/net/minecraft/server/EntityStrider.java +@@ -252,7 +252,12 @@ + IBlockData iblockdata1 = this.aN(); + boolean flag = iblockdata.a((Tag) TagsBlock.STRIDER_WARM_BLOCKS) || iblockdata1.a((Tag) TagsBlock.STRIDER_WARM_BLOCKS) || this.b((Tag) TagsFluid.LAVA) > 0.0D; + +- this.setShivering(!flag); ++ // CraftBukkit start ++ if (!flag ^ this.isShivering()) { ++ org.bukkit.craftbukkit.event.CraftEventFactory.callStriderTemperatureChangeEvent(this, !flag); ++ this.setShivering(!flag); ++ } ++ // CraftBukkit end + super.tick(); + this.eU(); + this.checkBlockCollisions();