Skip to content

Commit 77264c3

Browse files
fix: anglecolor (#3043)
* fix: delegate getBiome in FilterBlock to getBiomeType * chore: make texture errors actually meaningful
1 parent a07fe26 commit 77264c3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/filter/block/CharFilterBlock.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,11 @@ public BiomeType getBiomeType(int x, int y, int z) {
409409
return getExtent().getBiomeType(x, y, z);
410410
}
411411

412+
@Override
413+
public BiomeType getBiome(final BlockVector3 position) {
414+
return this.getBiomeType(position.x(), position.y(), position.z());
415+
}
416+
412417
@Override
413418
public <T extends BlockStateHolder<T>> boolean setBlock(int x, int y, int z, T block)
414419
throws WorldEditException {

worldedit-core/src/main/java/com/fastasyncworldedit/core/util/TextureUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,8 @@ public void loadModTextures() throws IOException {
954954
}
955955
}
956956
if (entry == null) {
957-
LOGGER.error("Cannot find {} in {}", modelsDir, file);
957+
final String[] dirs = Arrays.stream(modelsDir).map(s -> String.format(s, nameSpace, name)).toArray(String[]::new);
958+
LOGGER.error("Cannot find {} in {}", dirs, file);
958959
continue;
959960
}
960961

0 commit comments

Comments
 (0)