Skip to content

Commit

Permalink
only replace solid blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Jun 9, 2024
1 parent d138af3 commit d5c92f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void paint(final Location location, final Player player, final BrushSetti

private boolean isOverlay(Block block, int thickness) {
for (int i = 1; i <= thickness; i++) {
if (block.getRelative(BlockFace.UP, i).isEmpty()) {
if (!block.getRelative(BlockFace.UP, i).isSolid()) {
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void paint(final Location location, final Player player, final BrushSetti

private boolean isUnderlay(Block block, int thickness) {
for (int i = 1; i <= thickness; i++) {
if (block.getRelative(BlockFace.UP, i).isEmpty()) {
if (!block.getRelative(BlockFace.UP, i).isSolid()) {
return false;
}
}
Expand Down

0 comments on commit d5c92f2

Please sign in to comment.