aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0373-Check-Drowned-for-Villager-Aggression-Config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches/0373-Check-Drowned-for-Villager-Aggression-Config.patch')
-rw-r--r--Spigot-Server-Patches/0373-Check-Drowned-for-Villager-Aggression-Config.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0373-Check-Drowned-for-Villager-Aggression-Config.patch b/Spigot-Server-Patches/0373-Check-Drowned-for-Villager-Aggression-Config.patch
new file mode 100644
index 0000000000..59aeaa251d
--- /dev/null
+++ b/Spigot-Server-Patches/0373-Check-Drowned-for-Villager-Aggression-Config.patch
@@ -0,0 +1,22 @@
+From 27b640541e74e7f1607ad073af6f4b03645d5151 Mon Sep 17 00:00:00 2001
+From: BillyGalbreath <[email protected]>
+Date: Wed, 10 Oct 2018 21:22:44 -0500
+Subject: [PATCH] Check Drowned for Villager Aggression Config
+
+
+diff --git a/src/main/java/net/minecraft/server/EntityDrowned.java b/src/main/java/net/minecraft/server/EntityDrowned.java
+index b861c623cc..0e2b5ee743 100644
+--- a/src/main/java/net/minecraft/server/EntityDrowned.java
++++ b/src/main/java/net/minecraft/server/EntityDrowned.java
+@@ -28,7 +28,7 @@ public class EntityDrowned extends EntityZombie implements IRangedEntity {
+ this.goalSelector.a(7, new PathfinderGoalRandomStroll(this, 1.0D));
+ this.targetSelector.a(1, new PathfinderGoalHurtByTarget(this, true, new Class[] { EntityDrowned.class}));
+ this.targetSelector.a(2, new PathfinderGoalNearestAttackableTarget<>(this, EntityHuman.class, 10, true, false, new EntityDrowned.b(this)));
+- this.targetSelector.a(3, new PathfinderGoalNearestAttackableTarget<>(this, EntityVillager.class, false));
++ if ( world.spigotConfig.zombieAggressiveTowardsVillager ) this.targetSelector.a(3, new PathfinderGoalNearestAttackableTarget<>(this, EntityVillager.class, false));
+ this.targetSelector.a(3, new PathfinderGoalNearestAttackableTarget<>(this, EntityIronGolem.class, true));
+ this.targetSelector.a(5, new PathfinderGoalNearestAttackableTarget<>(this, EntityTurtle.class, 10, true, false, EntityTurtle.bC));
+ }
+--
+2.21.0
+