2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/IEntityAngerable.java
|
|
|
|
+++ b/net/minecraft/world/entity/IEntityAngerable.java
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -114,7 +114,7 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
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);
|
2020-06-25 02:00:00 +02:00
|
|
|
}
|
|
|
|
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -127,6 +127,8 @@
|
2020-06-25 02:00:00 +02:00
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
void setTarget(@Nullable EntityLiving entityliving);
|
2020-06-25 02:00:00 +02:00
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
+ boolean setTarget(@Nullable EntityLiving entityliving, org.bukkit.event.entity.EntityTargetEvent.TargetReason reason, boolean fireEvent); // CraftBukkit
|
2020-06-25 02:00:00 +02:00
|
|
|
+
|
2021-11-21 23:00:00 +01:00
|
|
|
boolean canAttack(EntityLiving entityliving);
|
2021-06-11 07:00:00 +02:00
|
|
|
|
2020-06-25 02:00:00 +02:00
|
|
|
@Nullable
|