From 8597a42d374a60e275c0f8313c9bc2937be79e42 Mon Sep 17 00:00:00 2001 From: Gergely Sarkozi Date: Fri, 5 Feb 2021 22:24:45 +0100 Subject: [PATCH] fix calling setSize on dead slimes causing invincibility (fixes #5137) (#5168) --- ...fix-dead-slime-setSize-invincibility.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Spigot-Server-Patches/fix-dead-slime-setSize-invincibility.patch diff --git a/Spigot-Server-Patches/fix-dead-slime-setSize-invincibility.patch b/Spigot-Server-Patches/fix-dead-slime-setSize-invincibility.patch new file mode 100644 index 0000000000..f98f485947 --- /dev/null +++ b/Spigot-Server-Patches/fix-dead-slime-setSize-invincibility.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Trigary +Date: Fri, 5 Feb 2021 22:12:13 +0100 +Subject: [PATCH] fix dead slime setSize invincibility + + +diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftSlime.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftSlime.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftSlime.java ++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftSlime.java +@@ -0,0 +0,0 @@ public class CraftSlime extends CraftMob implements Slime { + + @Override + public void setSize(int size) { +- getHandle().setSize(size, true); ++ getHandle().setSize(size, /* true */ getHandle().isAlive()); // Paper - fix dead slime setSize invincibility + } + + @Override