3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00
Paper/nms-patches/EntityIronGolem.patch

12 Zeilen
549 B
Diff

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