2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/entity/animal/EntityIronGolem.java
|
|
|
|
+++ b/net/minecraft/world/entity/animal/EntityIronGolem.java
|
2024-06-14 01:05:00 +10:00
|
|
|
@@ -98,7 +98,7 @@
|
2019-04-23 12:00:00 +10:00
|
|
|
@Override
|
2021-11-22 09:00:00 +11:00
|
|
|
protected void doPush(Entity entity) {
|
2016-03-01 08:32:46 +11:00
|
|
|
if (entity instanceof IMonster && !(entity instanceof EntityCreeper) && this.getRandom().nextInt(20) == 0) {
|
2021-11-22 09:00:00 +11:00
|
|
|
- this.setTarget((EntityLiving) entity);
|
|
|
|
+ this.setTarget((EntityLiving) entity, org.bukkit.event.entity.EntityTargetLivingEntityEvent.TargetReason.COLLISION, true); // CraftBukkit - set reason
|
2014-11-26 08:32:16 +11:00
|
|
|
}
|
|
|
|
|
2021-11-22 09:00:00 +11:00
|
|
|
super.doPush(entity);
|