From 7aa1e00f31c1374bdda0499755bff81ccd48401d Mon Sep 17 00:00:00 2001 From: Kevin G Date: Mon, 20 Feb 2017 00:39:27 -0500 Subject: [PATCH] Fix for bad decompile process on Particle.java that causes onGround flag to not get set properly as well as motionX and motionZ not being set to 0 when their axis has collision happening (#3716) --- .../client/particle/Particle.java.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 patches/minecraft/net/minecraft/client/particle/Particle.java.patch diff --git a/patches/minecraft/net/minecraft/client/particle/Particle.java.patch b/patches/minecraft/net/minecraft/client/particle/Particle.java.patch new file mode 100644 index 0000000000..f193709ad3 --- /dev/null +++ b/patches/minecraft/net/minecraft/client/particle/Particle.java.patch @@ -0,0 +1,29 @@ +--- ../src-base/minecraft/net/minecraft/client/particle/Particle.java ++++ ../src-work/minecraft/net/minecraft/client/particle/Particle.java +@@ -283,6 +283,8 @@ + public void func_187110_a(double p_187110_1_, double p_187110_3_, double p_187110_5_) + { + double d0 = p_187110_3_; ++ double origX = p_187110_1_; ++ double origZ = p_187110_5_; + + if (this.field_190017_n) + { +@@ -315,14 +317,14 @@ + } + + this.func_187118_j(); +- this.field_187132_l = p_187110_3_ != p_187110_3_ && d0 < 0.0D; ++ this.field_187132_l = d0 != p_187110_3_ && d0 < 0.0D; + +- if (p_187110_1_ != p_187110_1_) ++ if (origX != p_187110_1_) + { + this.field_187129_i = 0.0D; + } + +- if (p_187110_5_ != p_187110_5_) ++ if (origZ != p_187110_5_) + { + this.field_187131_k = 0.0D; + }