2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/EntityIronGolem.java
|
|
|
|
+++ b/net/minecraft/server/EntityIronGolem.java
|
2016-02-29 22:32:46 +01:00
|
|
|
@@ -71,7 +71,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2016-02-29 22:32:46 +01:00
|
|
|
protected void C(Entity entity) {
|
|
|
|
if (entity instanceof IMonster && !(entity instanceof EntityCreeper) && this.getRandom().nextInt(20) == 0) {
|
2014-11-25 22:32:16 +01:00
|
|
|
- this.setGoalTarget((EntityLiving) entity);
|
|
|
|
+ this.setGoalTarget((EntityLiving) entity, org.bukkit.event.entity.EntityTargetLivingEntityEvent.TargetReason.COLLISION, true); // CraftBukkit - set reason
|
|
|
|
}
|
|
|
|
|
2016-02-29 22:32:46 +01:00
|
|
|
super.C(entity);
|