From 389751beaec07661e5fd24ee6fb24c5f2542c287 Mon Sep 17 00:00:00 2001 From: LexManos Date: Mon, 9 Sep 2019 15:30:11 -0700 Subject: [PATCH] Fix slimes splitting more times then they should. Closes #6138 --- .../net/minecraft/entity/monster/SlimeEntity.java.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/patches/minecraft/net/minecraft/entity/monster/SlimeEntity.java.patch b/patches/minecraft/net/minecraft/entity/monster/SlimeEntity.java.patch index 8734c6e904..7d0616d851 100644 --- a/patches/minecraft/net/minecraft/entity/monster/SlimeEntity.java.patch +++ b/patches/minecraft/net/minecraft/entity/monster/SlimeEntity.java.patch @@ -17,7 +17,7 @@ for(int j = 0; j < i * 8; ++j) { float f = this.field_70146_Z.nextFloat() * ((float)Math.PI * 2F); float f1 = this.field_70146_Z.nextFloat() * 0.5F + 0.5F; -@@ -170,7 +171,8 @@ +@@ -170,9 +171,10 @@ return (EntityType) super.func_200600_R(); } @@ -25,8 +25,11 @@ + @Override + public void remove(boolean keepData) { int i = this.func_70809_q(); - if (!this.field_70170_p.field_72995_K && i > 1 && this.func_110143_aJ() <= 0.0F) { +- if (!this.field_70170_p.field_72995_K && i > 1 && this.func_110143_aJ() <= 0.0F) { ++ if (!this.field_70170_p.field_72995_K && i > 1 && this.func_110143_aJ() <= 0.0F && !this.field_70128_L) { int j = 2 + this.field_70146_Z.nextInt(3); + + for(int k = 0; k < j; ++k) { @@ -193,7 +195,7 @@ } }