Skip to content

Commit

Permalink
Fix air error with Visible Barriers mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugman76 committed Aug 18, 2023
1 parent 31ff866 commit e782b5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/fr/hugman/build_rush/build/BuildUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public static List<ItemStack> stacksForBlock(World world, BlockPos pos) {
var pickStack = block.getPickStack(world, pos, state);
stacks.add(pickStack);

if(state.isAir()) {
return List.of();
}

// Multipart blocks
if(state.contains(Properties.DOUBLE_BLOCK_HALF)) {
if(state.get(Properties.DOUBLE_BLOCK_HALF) == DoubleBlockHalf.LOWER) {
Expand Down

0 comments on commit e782b5c

Please sign in to comment.