mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 06:24:06 +01:00
21 lines
759 B
Diff
21 lines
759 B
Diff
|
--- a/net/minecraft/server/IEntityAngerable.java
|
||
|
+++ b/net/minecraft/server/IEntityAngerable.java
|
||
|
@@ -98,7 +98,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);
|
||
|
}
|
||
|
|
||
|
@@ -108,6 +108,8 @@
|
||
|
|
||
|
void setGoalTarget(@Nullable EntityLiving entityliving);
|
||
|
|
||
|
+ boolean setGoalTarget(EntityLiving entityliving, org.bukkit.event.entity.EntityTargetEvent.TargetReason reason, boolean fireEvent); // CraftBukkit
|
||
|
+
|
||
|
@Nullable
|
||
|
EntityLiving getGoalTarget();
|
||
|
}
|