Skip to content

Commit

Permalink
Fix VectorNode
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 12, 2023
1 parent ac4fad7 commit 8ff930f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -173,7 +173,7 @@ public float heuristicDistance(Vector goal) {
}

private boolean isPassable(PathPoint mod) {
boolean passable = false;
boolean passable = true;
for (BlockExaminer examiner : info.examiners) {
PassableState state = examiner.isPassable(info.blockSource, mod);
if (state == PassableState.IGNORE)
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/net/citizensnpcs/api/npc/NPC.java
Expand Up @@ -104,6 +104,9 @@ public interface NPC extends Agent, Cloneable {
*/
public void faceLocation(Location location);

/**
* Creates a {@link BlockBreaker} that allows you to break blocks using the Minecraft breaking algorithm.
*/
public BlockBreaker getBlockBreaker(Block targetBlock, BlockBreakerConfiguration config);

/**
Expand Down Expand Up @@ -394,7 +397,7 @@ public interface NPC extends Agent, Cloneable {
*/
public void teleport(Location location, TeleportCause cause);

void updateCustomName();
public void updateCustomName();

/**
* Whether the NPC is currently set to use Minecraft AI. Defaults to false.
Expand Down

0 comments on commit 8ff930f

Please sign in to comment.