Skip to content

Commit

Permalink
Merge pull request #4314 from ZacSharp/pr/1.19.4/builder/fixBuildSkip…
Browse files Browse the repository at this point in the history
…BlocksNPE

Fix NPE
  • Loading branch information
leijurv authored Mar 29, 2024
2 parents a811936 + 5826931 commit 62b2f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/baritone/process/BuilderProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void build(String name, ISchematic schematic, Vec3i origin) {
@Override
public boolean partOfMask(int x, int y, int z, BlockState current) {
// partOfMask is only called inside the schematic so desiredState is not null
return !Baritone.settings().buildSkipBlocks.value.contains(this.desiredState(x, y, z, current, null).getBlock());
return !Baritone.settings().buildSkipBlocks.value.contains(this.desiredState(x, y, z, current, Collections.emptyList()).getBlock());
}
};
int x = origin.getX();
Expand Down

0 comments on commit 62b2f81

Please sign in to comment.