2020-08-30 20:27:50 +02:00
|
|
|
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/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2020-11-12 05:58:42 +01:00
|
|
|
index dd8ed18ae93aed4b9a4f11460de5ce23d8fd8c43..5e2ae5758d6e649d00f8047c7ab0d263fd7f96e8 100644
|
2020-08-30 20:27:50 +02:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2020-11-12 05:58:42 +01:00
|
|
|
@@ -657,4 +657,9 @@ public class PaperWorldConfig {
|
2020-08-30 20:27:50 +02:00
|
|
|
maxLightningFlashDistance = 512; // Vanilla value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean zombiesTargetTurtleEggs = true;
|
|
|
|
+ private void zombiesTargetTurtleEggs() {
|
|
|
|
+ zombiesTargetTurtleEggs = getBoolean("zombies-target-turtle-eggs", zombiesTargetTurtleEggs);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityZombie.java b/src/main/java/net/minecraft/server/EntityZombie.java
|
2020-11-03 03:22:15 +01:00
|
|
|
index f390abf65d648e1e0697e2d802f3195a0241116e..e3606722cb1b3f6a11d34e1cdef7210280dba677 100644
|
2020-08-30 20:27:50 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityZombie.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityZombie.java
|
|
|
|
@@ -46,7 +46,7 @@ public class EntityZombie extends EntityMonster {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void initPathfinder() {
|
|
|
|
- this.goalSelector.a(4, new EntityZombie.a(this, 1.0D, 3));
|
|
|
|
+ if (world.paperConfig.zombiesTargetTurtleEggs) this.goalSelector.a(4, new EntityZombie.a(this, 1.0D, 3)); // Paper
|
|
|
|
this.goalSelector.a(8, new PathfinderGoalLookAtPlayer(this, EntityHuman.class, 8.0F));
|
|
|
|
this.goalSelector.a(8, new PathfinderGoalRandomLookaround(this));
|
|
|
|
this.m();
|