From d91bc9c73dc757648d7322a3586856e8f1593441 Mon Sep 17 00:00:00 2001 From: Redstone_Dubstep <42962686+RedstoneDubstep@users.noreply.github.com> Date: Mon, 8 Aug 2022 15:09:13 +0200 Subject: [PATCH] Fix certain particles not updating their bounding box when their position changes (#8925) --- .../particle/EnchantmentTableParticle.java.patch | 10 ++++++++++ .../client/particle/PortalParticle.java.patch | 10 ++++++++++ .../client/particle/ReversePortalParticle.java.patch | 10 ++++++++++ .../client/particle/VibrationSignalParticle.java.patch | 10 ++++++++++ 4 files changed, 40 insertions(+) create mode 100644 patches/minecraft/net/minecraft/client/particle/EnchantmentTableParticle.java.patch create mode 100644 patches/minecraft/net/minecraft/client/particle/PortalParticle.java.patch create mode 100644 patches/minecraft/net/minecraft/client/particle/ReversePortalParticle.java.patch create mode 100644 patches/minecraft/net/minecraft/client/particle/VibrationSignalParticle.java.patch diff --git a/patches/minecraft/net/minecraft/client/particle/EnchantmentTableParticle.java.patch b/patches/minecraft/net/minecraft/client/particle/EnchantmentTableParticle.java.patch new file mode 100644 index 0000000000..4411a6cfd6 --- /dev/null +++ b/patches/minecraft/net/minecraft/client/particle/EnchantmentTableParticle.java.patch @@ -0,0 +1,10 @@ +--- a/net/minecraft/client/particle/EnchantmentTableParticle.java ++++ b/net/minecraft/client/particle/EnchantmentTableParticle.java +@@ -73,6 +_,7 @@ + this.f_107212_ = this.f_106461_ + this.f_107215_ * (double)f; + this.f_107213_ = this.f_106462_ + this.f_107216_ * (double)f - (double)(f1 * 1.2F); + this.f_107214_ = this.f_106460_ + this.f_107217_ * (double)f; ++ this.m_107264_(this.f_107212_, this.f_107213_, this.f_107214_); // FORGE: update the particle's bounding box + } + } + diff --git a/patches/minecraft/net/minecraft/client/particle/PortalParticle.java.patch b/patches/minecraft/net/minecraft/client/particle/PortalParticle.java.patch new file mode 100644 index 0000000000..f1777e93d8 --- /dev/null +++ b/patches/minecraft/net/minecraft/client/particle/PortalParticle.java.patch @@ -0,0 +1,10 @@ +--- a/net/minecraft/client/particle/PortalParticle.java ++++ b/net/minecraft/client/particle/PortalParticle.java +@@ -75,6 +_,7 @@ + this.f_107212_ = this.f_107548_ + this.f_107215_ * (double)f2; + this.f_107213_ = this.f_107549_ + this.f_107216_ * (double)f2 + (double)(1.0F - f); + this.f_107214_ = this.f_107547_ + this.f_107217_ * (double)f2; ++ this.m_107264_(this.f_107212_, this.f_107213_, this.f_107214_); // FORGE: update the particle's bounding box + } + } + diff --git a/patches/minecraft/net/minecraft/client/particle/ReversePortalParticle.java.patch b/patches/minecraft/net/minecraft/client/particle/ReversePortalParticle.java.patch new file mode 100644 index 0000000000..cfb5f32cc0 --- /dev/null +++ b/patches/minecraft/net/minecraft/client/particle/ReversePortalParticle.java.patch @@ -0,0 +1,10 @@ +--- a/net/minecraft/client/particle/ReversePortalParticle.java ++++ b/net/minecraft/client/particle/ReversePortalParticle.java +@@ -29,6 +_,7 @@ + this.f_107212_ += this.f_107215_ * (double)f; + this.f_107213_ += this.f_107216_ * (double)f; + this.f_107214_ += this.f_107217_ * (double)f; ++ this.m_107264_(this.f_107212_, this.f_107213_, this.f_107214_); // FORGE: update the particle's bounding box + } + } + diff --git a/patches/minecraft/net/minecraft/client/particle/VibrationSignalParticle.java.patch b/patches/minecraft/net/minecraft/client/particle/VibrationSignalParticle.java.patch new file mode 100644 index 0000000000..6d7d3e96e0 --- /dev/null +++ b/patches/minecraft/net/minecraft/client/particle/VibrationSignalParticle.java.patch @@ -0,0 +1,10 @@ +--- a/net/minecraft/client/particle/VibrationSignalParticle.java ++++ b/net/minecraft/client/particle/VibrationSignalParticle.java +@@ -100,6 +_,7 @@ + this.f_107212_ = Mth.m_14139_(d0, this.f_107212_, vec3.m_7096_()); + this.f_107213_ = Mth.m_14139_(d0, this.f_107213_, vec3.m_7098_()); + this.f_107214_ = Mth.m_14139_(d0, this.f_107214_, vec3.m_7094_()); ++ this.m_107264_(this.f_107212_, this.f_107213_, this.f_107214_); // FORGE: update the particle's bounding box + this.f_172460_ = this.f_172462_; + this.f_172462_ = (float)Mth.m_14136_(this.f_107212_ - vec3.m_7096_(), this.f_107214_ - vec3.m_7094_()); + }