Skip to content

Commit e782b5c

Browse files
committed
Fix air error with Visible Barriers mod
1 parent 31ff866 commit e782b5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/fr/hugman/build_rush/build/BuildUtil.java

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ public static List<ItemStack> stacksForBlock(World world, BlockPos pos) {
6161
var pickStack = block.getPickStack(world, pos, state);
6262
stacks.add(pickStack);
6363

64+
if(state.isAir()) {
65+
return List.of();
66+
}
67+
6468
// Multipart blocks
6569
if(state.contains(Properties.DOUBLE_BLOCK_HALF)) {
6670
if(state.get(Properties.DOUBLE_BLOCK_HALF) == DoubleBlockHalf.LOWER) {

0 commit comments

Comments
 (0)