From d109a47a401074522d1e8ebb1165b9305504b49b Mon Sep 17 00:00:00 2001 From: Zepalesque <60141811+Zepalesque@users.noreply.github.com> Date: Sat, 2 Mar 2024 21:21:28 -0500 Subject: [PATCH] fix: fixed broken ai and burning stuff for cockatrices --- .../capability/cockatrice/CockatriceExtensionCapability.java | 1 + src/main/java/net/zepalesque/redux/event/hook/MobHooks.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/zepalesque/redux/capability/cockatrice/CockatriceExtensionCapability.java b/src/main/java/net/zepalesque/redux/capability/cockatrice/CockatriceExtensionCapability.java index e97272daa..f79a273c8 100644 --- a/src/main/java/net/zepalesque/redux/capability/cockatrice/CockatriceExtensionCapability.java +++ b/src/main/java/net/zepalesque/redux/capability/cockatrice/CockatriceExtensionCapability.java @@ -114,6 +114,7 @@ public Map, Supplier>> getSynchabl public void tick() { this.handleLegAnim(); this.handleTargetAnim(); + this.handleBurning(); } public void handleBurning() { diff --git a/src/main/java/net/zepalesque/redux/event/hook/MobHooks.java b/src/main/java/net/zepalesque/redux/event/hook/MobHooks.java index e3d0117fd..03a31939f 100644 --- a/src/main/java/net/zepalesque/redux/event/hook/MobHooks.java +++ b/src/main/java/net/zepalesque/redux/event/hook/MobHooks.java @@ -32,10 +32,11 @@ public class MobHooks { public static void modifyCockatriceAI(Cockatrice cockatrice) { - if (ReduxConfig.COMMON.cockatrice_burn_in_daylight.get()) { + // TODO: fix +/* if (ReduxConfig.COMMON.cockatrice_burn_in_daylight.get()) { cockatrice.goalSelector.addGoal(2, new RestrictSunGoal(cockatrice)); cockatrice.goalSelector.addGoal(3, new FleeSunGoal(cockatrice, 1.0D)); - } + }*/ cockatrice.goalSelector.addGoal(1, new CockatriceMeleeAttackGoal(cockatrice, 1.5, false)); final WrappedGoal[] toRemove = new WrappedGoal[1]; final WrappedGoal[] removeRanged = new WrappedGoal[1];