aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0401-Add-zombie-targets-turtle-egg-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0401-Add-zombie-targets-turtle-egg-config.patch')
-rw-r--r--patches/server/0401-Add-zombie-targets-turtle-egg-config.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0401-Add-zombie-targets-turtle-egg-config.patch b/patches/server/0401-Add-zombie-targets-turtle-egg-config.patch
new file mode 100644
index 0000000000..56529e1fd4
--- /dev/null
+++ b/patches/server/0401-Add-zombie-targets-turtle-egg-config.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: BillyGalbreath <[email protected]>
+Date: Sun, 23 Aug 2020 15:47:34 +0200
+Subject: [PATCH] Add zombie targets turtle egg config
+
+
+diff --git a/src/main/java/net/minecraft/world/entity/monster/Zombie.java b/src/main/java/net/minecraft/world/entity/monster/Zombie.java
+index e2a3978899497b6622829d6577cfaa723092da9d..78254df3e5fbcb0a90c2f9eb9c9343792238f685 100644
+--- a/src/main/java/net/minecraft/world/entity/monster/Zombie.java
++++ b/src/main/java/net/minecraft/world/entity/monster/Zombie.java
+@@ -110,7 +110,7 @@ public class Zombie extends Monster {
+
+ @Override
+ protected void registerGoals() {
+- this.goalSelector.addGoal(4, new Zombie.ZombieAttackTurtleEggGoal(this, 1.0D, 3));
++ if (this.level().paperConfig().entities.behavior.zombiesTargetTurtleEggs) this.goalSelector.addGoal(4, new Zombie.ZombieAttackTurtleEggGoal(this, 1.0D, 3)); // Paper - Add zombie targets turtle egg config
+ this.goalSelector.addGoal(8, new LookAtPlayerGoal(this, Player.class, 8.0F));
+ this.goalSelector.addGoal(8, new RandomLookAroundGoal(this));
+ this.addBehaviourGoals();