mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
||
|
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 3c3095e7e684079bcba0ea5a6b44c8fe2a3f47c4..67fe3b79b6fe4064b26f87734174a394b9e2b3e3 100644
|
||
|
--- a/src/main/java/net/minecraft/world/entity/monster/Zombie.java
|
||
|
+++ b/src/main/java/net/minecraft/world/entity/monster/Zombie.java
|
||
|
@@ -107,7 +107,7 @@ public class Zombie extends Monster {
|
||
|
|
||
|
@Override
|
||
|
protected void registerGoals() {
|
||
|
- this.goalSelector.addGoal(4, new Zombie.ZombieAttackTurtleEggGoal(this, 1.0D, 3));
|
||
|
+ if (level.paperConfig().entities.behavior.zombiesTargetTurtleEggs) this.goalSelector.addGoal(4, new Zombie.ZombieAttackTurtleEggGoal(this, 1.0D, 3)); // Paper
|
||
|
this.goalSelector.addGoal(8, new LookAtPlayerGoal(this, Player.class, 8.0F));
|
||
|
this.goalSelector.addGoal(8, new RandomLookAroundGoal(this));
|
||
|
this.addBehaviourGoals();
|