Skip to content

Commit 549723e

Browse files
committed
Extend OreAirCheck to blocks that cannot occlude
1 parent 2410d80 commit 549723e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/dev/xpple/seedmapper/command/commands/HighlightCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private static int highlightBlock(CustomClientCommandSource source, int block, i
146146
for (int i = 0; i < size; i++) {
147147
MemorySegment pos3 = Pos3.asSlice(pos3s, i);
148148
BlockPos pos = new BlockPos(Pos3.x(pos3), Pos3.y(pos3), Pos3.z(pos3));
149-
if (doAirCheck && chunk.getBlockState(pos).isAir()) {
149+
if (doAirCheck && !chunk.getBlockState(pos).canOcclude()) {
150150
continue;
151151
}
152152
Integer previouslyGeneratedOre = generatedOres.get(pos);

0 commit comments

Comments
 (0)