Skip to content

Commit

Permalink
fix: anglecolor (#3043)
Browse files Browse the repository at this point in the history
* fix: delegate getBiome in FilterBlock to getBiomeType

* chore: make texture errors actually meaningful
  • Loading branch information
PierreSchwang authored Dec 28, 2024
1 parent a07fe26 commit 77264c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ public BiomeType getBiomeType(int x, int y, int z) {
return getExtent().getBiomeType(x, y, z);
}

@Override
public BiomeType getBiome(final BlockVector3 position) {
return this.getBiomeType(position.x(), position.y(), position.z());
}

@Override
public <T extends BlockStateHolder<T>> boolean setBlock(int x, int y, int z, T block)
throws WorldEditException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,8 @@ public void loadModTextures() throws IOException {
}
}
if (entry == null) {
LOGGER.error("Cannot find {} in {}", modelsDir, file);
final String[] dirs = Arrays.stream(modelsDir).map(s -> String.format(s, nameSpace, name)).toArray(String[]::new);
LOGGER.error("Cannot find {} in {}", dirs, file);
continue;
}

Expand Down

0 comments on commit 77264c3

Please sign in to comment.