PaperMC/Spigot-Server-Patches/0634-Fix-nerfed-slime-when-splitting.patch

19 lines
937 B
Diff
Raw Normal View History

2020-07-17 22:34:50 +02:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jake Potrebic <jake.m.potrebic@gmail.com>
Date: Mon, 24 Aug 2020 08:39:06 -0700
Subject: [PATCH] Fix nerfed slime when splitting
diff --git a/src/main/java/net/minecraft/server/EntitySlime.java b/src/main/java/net/minecraft/server/EntitySlime.java
index 60818e1a7ce9c637bef8dc05de8cba10975ffc79..80fab9290479f876fd78997c1bd55fe6b00aac45 100644
2020-07-17 22:34:50 +02:00
--- a/src/main/java/net/minecraft/server/EntitySlime.java
+++ b/src/main/java/net/minecraft/server/EntitySlime.java
@@ -207,6 +207,7 @@ public class EntitySlime extends EntityInsentient implements IMonster {
2020-07-17 22:34:50 +02:00
entityslime.setPersistent();
}
+ entityslime.aware = this.aware; // Paper
entityslime.setCustomName(ichatbasecomponent);
entityslime.setNoAI(flag);
entityslime.setInvulnerable(this.isInvulnerable());