2019-12-16 03:58:10 +01:00
From 681b356b181ae069b9ff7cddf6e8cc5b90d000a6 Mon Sep 17 00:00:00 2001
2018-10-11 05:01:14 +02:00
From: BillyGalbreath <Blake.Galbreath@GMail.com>
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
2019-12-16 03:58:10 +01:00
index 255b3d0cde..3a1928b221 100644
2018-10-11 05:01:14 +02:00
--- a/src/main/java/net/minecraft/server/EntityDrowned.java
+++ b/src/main/java/net/minecraft/server/EntityDrowned.java
2019-05-05 10:33:44 +02:00
@@ -29,7 +29,7 @@ public class EntityDrowned extends EntityZombie implements IRangedEntity {
2018-10-11 05:01:14 +02:00
this.goalSelector.a(7, new PathfinderGoalRandomStroll(this, 1.0D));
2019-05-28 01:01:45 +02:00
this.targetSelector.a(1, (new PathfinderGoalHurtByTarget(this, new Class[]{EntityDrowned.class})).a(EntityPigZombie.class));
2019-12-12 17:20:43 +01:00
this.targetSelector.a(2, new PathfinderGoalNearestAttackableTarget<>(this, EntityHuman.class, 10, true, false, this::i));
2019-05-05 10:33:44 +02:00
- this.targetSelector.a(3, new PathfinderGoalNearestAttackableTarget<>(this, EntityVillagerAbstract.class, false));
+ if ( world.spigotConfig.zombieAggressiveTowardsVillager ) this.targetSelector.a(3, new PathfinderGoalNearestAttackableTarget<>(this, EntityVillagerAbstract.class, false)); // Paper
2019-01-01 04:15:55 +01:00
this.targetSelector.a(3, new PathfinderGoalNearestAttackableTarget<>(this, EntityIronGolem.class, true));
2019-12-12 17:20:43 +01:00
this.targetSelector.a(5, new PathfinderGoalNearestAttackableTarget<>(this, EntityTurtle.class, 10, true, false, EntityTurtle.bw));
2018-10-11 05:01:14 +02:00
}
--
2019-12-13 21:41:01 +01:00
2.24.1
2018-10-11 05:01:14 +02:00