From 8c8b31435b153c77871ff18eb881fad38148c764 Mon Sep 17 00:00:00 2001 From: OneLemonyBoi <50998649+OneLemonyBoi@users.noreply.github.com> Date: Fri, 16 Jul 2021 19:37:12 -0700 Subject: [PATCH] Corrects the assigning of mob kills, Fixes MC-121048 (#7836) --- .../minecraft/entity/player/PlayerEntity.java.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/patches/minecraft/net/minecraft/entity/player/PlayerEntity.java.patch b/patches/minecraft/net/minecraft/entity/player/PlayerEntity.java.patch index d9ba318ef7..27a4e6f0ce 100644 --- a/patches/minecraft/net/minecraft/entity/player/PlayerEntity.java.patch +++ b/patches/minecraft/net/minecraft/entity/player/PlayerEntity.java.patch @@ -163,6 +163,16 @@ float f = p_70665_2_ - f2; if (f > 0.0F && f < 3.4028235E37F) { this.func_195067_a(Stats.field_212738_J, Math.round(f * 10.0F)); +@@ -859,8 +_,8 @@ + if (f2 != 0.0F) { + this.func_71020_j(p_70665_1_.func_76345_d()); + float f1 = this.func_110143_aJ(); +- this.func_70606_j(this.func_110143_aJ() - f2); + this.func_110142_aN().func_94547_a(p_70665_1_, f1, f2); ++ this.func_70606_j(f1 - f2); // Forge: moved to fix MC-121048 + if (f2 < 3.4028235E37F) { + this.func_195067_a(Stats.field_188112_z, Math.round(f2 * 10.0F)); + } @@ -909,6 +_,8 @@ return ActionResultType.PASS;