summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityIronGolem.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityIronGolem.patch')
-rw-r--r--nms-patches/EntityIronGolem.patch17
1 files changed, 4 insertions, 13 deletions
diff --git a/nms-patches/EntityIronGolem.patch b/nms-patches/EntityIronGolem.patch
index f05036e9..6fe4f58e 100644
--- a/nms-patches/EntityIronGolem.patch
+++ b/nms-patches/EntityIronGolem.patch
@@ -1,20 +1,11 @@
--- a/net/minecraft/server/EntityIronGolem.java
+++ b/net/minecraft/server/EntityIronGolem.java
-@@ -59,7 +59,7 @@
+@@ -71,7 +71,7 @@
- protected void s(Entity entity) {
- if (entity instanceof IMonster && !(entity instanceof EntityCreeper) && this.bc().nextInt(20) == 0) {
+ protected void C(Entity entity) {
+ 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
}
- super.s(entity);
-@@ -220,7 +220,7 @@
- }
-
- public boolean apply(Object object) {
-- return this.a((EntityLiving) object);
-+ return this.a((T) object); // CraftBukkit - fix decompiler error
- }
- };
- }
+ super.C(entity);