2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/animal/EntityIronGolem.java
|
|
|
|
+++ b/net/minecraft/world/entity/animal/EntityIronGolem.java
|
2022-06-07 18:00:00 +02:00
|
|
|
@@ -105,7 +105,7 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|
2021-11-21 23:00:00 +01:00
|
|
|
protected void doPush(Entity entity) {
|
2016-02-29 22:32:46 +01:00
|
|
|
if (entity instanceof IMonster && !(entity instanceof EntityCreeper) && this.getRandom().nextInt(20) == 0) {
|
2021-11-21 23:00:00 +01:00
|
|
|
- this.setTarget((EntityLiving) entity);
|
|
|
|
+ this.setTarget((EntityLiving) entity, org.bukkit.event.entity.EntityTargetLivingEntityEvent.TargetReason.COLLISION, true); // CraftBukkit - set reason
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
super.doPush(entity);
|