From f5b1ea90e2ba52c67f297c8e5ae3f6d8a27c7fb4 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 2 Jan 2022 11:45:52 +1100 Subject: [PATCH] SPIGOT-6278: Persistent piglins count towards mob cap By: md_5 --- .../world/entity/monster/piglin/EntityPiglin.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-server/nms-patches/net/minecraft/world/entity/monster/piglin/EntityPiglin.patch b/paper-server/nms-patches/net/minecraft/world/entity/monster/piglin/EntityPiglin.patch index c4e4681c8e..0db4932dd2 100644 --- a/paper-server/nms-patches/net/minecraft/world/entity/monster/piglin/EntityPiglin.patch +++ b/paper-server/nms-patches/net/minecraft/world/entity/monster/piglin/EntityPiglin.patch @@ -56,6 +56,15 @@ } @VisibleForDebug +@@ -172,7 +200,7 @@ + + @Override + public boolean removeWhenFarAway(double d0) { +- return !this.isPersistenceRequired(); ++ return true; // CraftBukkit - SPIGOT-6278 + } + + @Override @@ -205,7 +233,7 @@ @Override