mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2024-11-25 06:56:14 +00:00
12 lines
577 B
Diff
12 lines
577 B
Diff
--- a/net/minecraft/world/entity/animal/EntityIronGolem.java
|
|
+++ b/net/minecraft/world/entity/animal/EntityIronGolem.java
|
|
@@ -98,7 +98,7 @@
|
|
@Override
|
|
protected void doPush(Entity entity) {
|
|
if (entity instanceof IMonster && !(entity instanceof EntityCreeper) && this.getRandom().nextInt(20) == 0) {
|
|
- this.setTarget((EntityLiving) entity);
|
|
+ this.setTarget((EntityLiving) entity, org.bukkit.event.entity.EntityTargetLivingEntityEvent.TargetReason.COLLISION, true); // CraftBukkit - set reason
|
|
}
|
|
|
|
super.doPush(entity);
|