Archiviert
13
0

SPIGOT-5100: Console warning from pig zombie targeting

Dieser Commit ist enthalten in:
md_5 2019-06-23 09:14:01 +10:00
Ursprung 6dde4b9fda
Commit 533290e290

Datei anzeigen

@ -31,3 +31,12 @@
this.soundDelay = this.random.nextInt(40);
if (entity instanceof EntityLiving) {
this.setLastDamager((EntityLiving) entity);
@@ -217,7 +228,7 @@
@Override
protected void a(EntityInsentient entityinsentient, EntityLiving entityliving) {
if (entityinsentient instanceof EntityPigZombie && this.e.hasLineOfSight(entityliving) && ((EntityPigZombie) entityinsentient).a((Entity) entityliving)) {
- entityinsentient.setGoalTarget(entityliving);
+ entityinsentient.setGoalTarget(entityliving, org.bukkit.event.entity.EntityTargetEvent.TargetReason.TARGET_ATTACKED_NEARBY_ENTITY, true); // CraftBukkit
}
}