mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 04:32:15 +00:00
Corrects the assigning of mob kills, Fixes MC-121048 (#7836)
This commit is contained in:
1 parent
16b3e2780e
commit
8c8b31435b
1 file changed
+10
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user