mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
9da047989c
By: md_5 <git@md-5.net>
20 lines
773 B
Diff
20 lines
773 B
Diff
--- a/net/minecraft/world/entity/IEntityAngerable.java
|
|
+++ b/net/minecraft/world/entity/IEntityAngerable.java
|
|
@@ -103,7 +103,7 @@
|
|
default void pacify() {
|
|
this.setLastDamager((EntityLiving) null);
|
|
this.setAngerTarget((UUID) null);
|
|
- this.setGoalTarget((EntityLiving) null);
|
|
+ this.setGoalTarget((EntityLiving) null, org.bukkit.event.entity.EntityTargetEvent.TargetReason.FORGOT_TARGET, true); // CraftBukkit
|
|
this.setAnger(0);
|
|
}
|
|
|
|
@@ -113,6 +113,8 @@
|
|
|
|
void setGoalTarget(@Nullable EntityLiving entityliving);
|
|
|
|
+ boolean setGoalTarget(EntityLiving entityliving, org.bukkit.event.entity.EntityTargetEvent.TargetReason reason, boolean fireEvent); // CraftBukkit
|
|
+
|
|
@Nullable
|
|
EntityLiving getGoalTarget();
|
|
}
|