aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0787-Dont-count-named-piglins-and-hoglins-towards-mob-cap.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0787-Dont-count-named-piglins-and-hoglins-towards-mob-cap.patch')
-rw-r--r--patches/server/0787-Dont-count-named-piglins-and-hoglins-towards-mob-cap.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0787-Dont-count-named-piglins-and-hoglins-towards-mob-cap.patch b/patches/server/0787-Dont-count-named-piglins-and-hoglins-towards-mob-cap.patch
new file mode 100644
index 0000000000..89603862f0
--- /dev/null
+++ b/patches/server/0787-Dont-count-named-piglins-and-hoglins-towards-mob-cap.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Jake Potrebic <[email protected]>
+Date: Fri, 20 Aug 2021 18:36:02 -0700
+Subject: [PATCH] Dont count named piglins and hoglins towards mob cap
+
+
+diff --git a/src/main/java/net/minecraft/world/entity/monster/hoglin/Hoglin.java b/src/main/java/net/minecraft/world/entity/monster/hoglin/Hoglin.java
+index 49ca4f6a9e33fdb5295dae2b059d071551353c24..373ec915412899e4893aa182abd6fb63f3dff0aa 100644
+--- a/src/main/java/net/minecraft/world/entity/monster/hoglin/Hoglin.java
++++ b/src/main/java/net/minecraft/world/entity/monster/hoglin/Hoglin.java
+@@ -181,7 +181,7 @@ public class Hoglin extends Animal implements Enemy, HoglinBase {
+
+ @Override
+ public boolean removeWhenFarAway(double distanceSquared) {
+- return !this.isPersistenceRequired();
++ return /*!this.isPersistenceRequired();*/ true; // Paper - what a jank fix, CBs like totally tried to change what removeWhenFarAway does, that method isnt even called in NaturalSpawner in vanilla, idk wtf is going on, there are so many places where this is done, for whatever reason
+ }
+
+ @Override