2016-11-17 02:41:03 +01:00
|
|
|
--- a/net/minecraft/server/EntityVex.java
|
|
|
|
+++ b/net/minecraft/server/EntityVex.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -2,6 +2,7 @@
|
2016-11-17 02:41:03 +01:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
import java.util.EnumSet;
|
2016-11-17 02:41:03 +01:00
|
|
|
import javax.annotation.Nullable;
|
|
|
|
+import org.bukkit.event.entity.EntityTargetEvent;
|
|
|
|
|
|
|
|
public class EntityVex extends EntityMonster {
|
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -45,7 +46,7 @@
|
|
|
|
this.goalSelector.a(8, new EntityVex.d());
|
|
|
|
this.goalSelector.a(9, new PathfinderGoalLookAtPlayer(this, EntityHuman.class, 3.0F, 1.0F));
|
|
|
|
this.goalSelector.a(10, new PathfinderGoalLookAtPlayer(this, EntityInsentient.class, 8.0F));
|
|
|
|
- this.targetSelector.a(1, (new PathfinderGoalHurtByTarget(this, new Class[] { EntityRaider.class})).a());
|
|
|
|
+ this.targetSelector.a(1, (new PathfinderGoalHurtByTarget(this, new Class[] { EntityRaider.class})).a(new Class[0])); // CraftBukkit - decompile error
|
|
|
|
this.targetSelector.a(2, new EntityVex.b(this));
|
|
|
|
this.targetSelector.a(3, new PathfinderGoalNearestAttackableTarget<>(this, EntityHuman.class, true));
|
|
|
|
}
|
|
|
|
@@ -189,7 +190,7 @@
|
2016-11-17 02:41:03 +01:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|
2016-11-17 02:41:03 +01:00
|
|
|
public void c() {
|
2019-04-23 04:00:00 +02:00
|
|
|
- EntityVex.this.setGoalTarget(EntityVex.this.c.getGoalTarget());
|
|
|
|
+ EntityVex.this.setGoalTarget(EntityVex.this.c.getGoalTarget(), EntityTargetEvent.TargetReason.OWNER_ATTACKED_TARGET, true); // CraftBukkit
|
2016-11-17 02:41:03 +01:00
|
|
|
super.c();
|
|
|
|
}
|
|
|
|
}
|