mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 22:14:40 +01:00
11 lines
536 B
Diff
11 lines
536 B
Diff
--- a/net/minecraft/server/EntityIronGolem.java
|
|
+++ b/net/minecraft/server/EntityIronGolem.java
|
|
@@ -66,7 +66,7 @@
|
|
|
|
protected void C(Entity entity) {
|
|
if (entity instanceof IMonster && !(entity instanceof EntityCreeper) && this.getRandom().nextInt(20) == 0) {
|
|
- this.setGoalTarget((EntityLiving) entity);
|
|
+ this.setGoalTarget((EntityLiving) entity, org.bukkit.event.entity.EntityTargetLivingEntityEvent.TargetReason.COLLISION, true); // CraftBukkit - set reason
|
|
}
|
|
|
|
super.C(entity);
|