Skip to content

Commit

Permalink
fix: fixed broken ai and burning stuff for cockatrices
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed Mar 3, 2024
1 parent 6420b4e commit d109a47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public Map<String, Triple<Type, Consumer<Object>, Supplier<Object>>> getSynchabl
public void tick() {
this.handleLegAnim();
this.handleTargetAnim();
this.handleBurning();
}

public void handleBurning() {
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/net/zepalesque/redux/event/hook/MobHooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d109a47

Please sign in to comment.