Skip to content

Commit

Permalink
Fix #4579
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Jan 14, 2024
1 parent 3462c84 commit 8b956b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void generateChunk(WorldGenRegion world, ChunkGenerator generator, Random
}

private boolean canPlaceHere(WorldGenRegion level, BlockPos.MutableBlockPos pos, BlockState state) {
if(!state.canBeReplaced())
if(!state.canBeReplaced() || state.liquid())
return false;

//Mutable blockpos nudging dance to avoid an allocation, probably not worth it, stupidest thing ever, vibes based optimization
Expand Down

0 comments on commit 8b956b3

Please sign in to comment.