3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2025-01-11 23:50:54 +01:00
Paper/nms-patches/EntityIronGolem.patch

12 Zeilen
549 B
Diff

2015-05-25 20:37:24 +10:00
--- a/net/minecraft/server/EntityIronGolem.java
+++ b/net/minecraft/server/EntityIronGolem.java
2020-06-25 10:00:00 +10:00
@@ -58,7 +58,7 @@
2019-04-23 12:00:00 +10:00
@Override
2019-12-11 09:00:00 +11:00
protected void C(Entity entity) {
2016-03-01 08:32:46 +11:00
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
}
2019-12-11 09:00:00 +11:00
super.C(entity);