mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
43702a9e10
By: md_5 <git@md-5.net>
20 lines
825 B
Diff
20 lines
825 B
Diff
--- a/net/minecraft/world/entity/IEntityAngerable.java
|
|
+++ b/net/minecraft/world/entity/IEntityAngerable.java
|
|
@@ -108,7 +108,7 @@
|
|
default void stopBeingAngry() {
|
|
this.setLastHurtByMob((EntityLiving) null);
|
|
this.setPersistentAngerTarget((UUID) null);
|
|
- this.setTarget((EntityLiving) null);
|
|
+ this.setTarget((EntityLiving) null, org.bukkit.event.entity.EntityTargetEvent.TargetReason.FORGOT_TARGET, true); // CraftBukkit
|
|
this.setRemainingPersistentAngerTime(0);
|
|
}
|
|
|
|
@@ -121,6 +121,8 @@
|
|
|
|
void setTarget(@Nullable EntityLiving entityliving);
|
|
|
|
+ boolean setTarget(@Nullable EntityLiving entityliving, org.bukkit.event.entity.EntityTargetEvent.TargetReason reason, boolean fireEvent); // CraftBukkit
|
|
+
|
|
boolean canAttack(EntityLiving entityliving);
|
|
|
|
@Nullable
|