aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0451-Fix-nerfed-slime-when-splitting.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-12-03 19:54:10 +0100
committerNassim Jahnke <[email protected]>2024-12-03 20:00:08 +0100
commitbd55e322d8cfb8f4d4fed04b38243bc4940fab50 (patch)
treec417bfb8a8727f6bc27e59586fb507b48bff51a2 /patches/server/0451-Fix-nerfed-slime-when-splitting.patch
parentc60e47fa58c171befcfb4ca48f38a201d559f90b (diff)
downloadPaper-bd55e322d8cfb8f4d4fed04b38243bc4940fab50.tar.gz
Paper-bd55e322d8cfb8f4d4fed04b38243bc4940fab50.zip
More more more work
Diffstat (limited to 'patches/server/0451-Fix-nerfed-slime-when-splitting.patch')
-rw-r--r--patches/server/0451-Fix-nerfed-slime-when-splitting.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0451-Fix-nerfed-slime-when-splitting.patch b/patches/server/0451-Fix-nerfed-slime-when-splitting.patch
new file mode 100644
index 0000000000..c35358b895
--- /dev/null
+++ b/patches/server/0451-Fix-nerfed-slime-when-splitting.patch
@@ -0,0 +1,18 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Jake Potrebic <[email protected]>
+Date: Mon, 24 Aug 2020 08:39:06 -0700
+Subject: [PATCH] Fix nerfed slime when splitting
+
+
+diff --git a/src/main/java/net/minecraft/world/entity/monster/Slime.java b/src/main/java/net/minecraft/world/entity/monster/Slime.java
+index 26f4db572dc6c25a9815b8f352d8829e252fa1a2..129f0cbc0469cb2804db6088b53347d88d91f4eb 100644
+--- a/src/main/java/net/minecraft/world/entity/monster/Slime.java
++++ b/src/main/java/net/minecraft/world/entity/monster/Slime.java
+@@ -250,6 +250,7 @@ public class Slime extends Mob implements Enemy {
+ float f3 = ((float) (l / 2) - 0.5F) * f1;
+
+ Slime converted = this.convertTo(this.getType(), new ConversionParams(ConversionType.SPLIT_ON_DEATH, false, false, scoreboardteam), EntitySpawnReason.TRIGGERED, (entityslime) -> { // CraftBukkit
++ entityslime.aware = this.aware; // Paper - Fix nerfed slime when splitting
+ entityslime.setSize(j, true);
+ entityslime.moveTo(this.getX() + (double) f2, this.getY() + 0.5D, this.getZ() + (double) f3, this.random.nextFloat() * 360.0F, 0.0F);
+ // CraftBukkit start