Skip to content

Commit

Permalink
return air instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
Gjum committed Jun 2, 2022
1 parent 4507680 commit 221998e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public BlockState getBlockState(BlockPos pos) {
}
if (layer.y() < pos.getY()) {
// top of layer is below pos, so pos is inside prevLayer
if (prevLayer == null) return null; // first layer is already below pos
if (prevLayer == null) return Blocks.AIR.defaultBlockState(); // first layer is already below pos
return prevLayer.state();
}
prevLayer = layer;
Expand Down

0 comments on commit 221998e

Please sign in to comment.