Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-23 14:50:08 +01:00
21 Zeilen
816 B
Diff
21 Zeilen
816 B
Diff
--- a/net/minecraft/server/EntityIronGolem.java
|
|
+++ b/net/minecraft/server/EntityIronGolem.java
|
|
@@ -59,7 +59,7 @@
|
|
|
|
protected void s(Entity entity) {
|
|
if (entity instanceof IMonster && !(entity instanceof EntityCreeper) && this.bc().nextInt(20) == 0) {
|
|
- this.setGoalTarget((EntityLiving) entity);
|
|
+ this.setGoalTarget((EntityLiving) entity, org.bukkit.event.entity.EntityTargetLivingEntityEvent.TargetReason.COLLISION, true); // CraftBukkit - set reason
|
|
}
|
|
|
|
super.s(entity);
|
|
@@ -220,7 +220,7 @@
|
|
}
|
|
|
|
public boolean apply(Object object) {
|
|
- return this.a((EntityLiving) object);
|
|
+ return this.a((T) object); // CraftBukkit - fix decompiler error
|
|
}
|
|
};
|
|
}
|