Skip to content

Commit

Permalink
fix: fixed cyclops related crash
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBv committed Oct 18, 2023
1 parent 5d5a0c7 commit c4bb2e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.github.alexthe666.iceandfire.pathfinding;

import com.github.alexthe666.citadel.server.entity.collision.CustomCollisionsNavigator;
import com.github.alexthe666.citadel.server.entity.collision.CustomCollisionsNodeProcessor;
import com.github.alexthe666.iceandfire.entity.EntityCyclops;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.pathfinder.PathFinder;
import net.minecraft.world.level.pathfinder.WalkNodeEvaluator;

public class PathNavigateCyclops extends CustomCollisionsNavigator {

Expand All @@ -14,7 +14,7 @@ public PathNavigateCyclops(EntityCyclops LivingEntityIn, Level worldIn) {

@Override
protected PathFinder createPathFinder(int i) {
this.nodeEvaluator = new CustomCollisionsNodeProcessor();
this.nodeEvaluator = new WalkNodeEvaluator();
this.nodeEvaluator.setCanPassDoors(true);
this.nodeEvaluator.setCanFloat(true);
return new PathFinder(this.nodeEvaluator, i);
Expand Down

0 comments on commit c4bb2e1

Please sign in to comment.