Skip to content

Commit

Permalink
let surface check only test for non-solid blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Jun 9, 2024
1 parent 46112a1 commit bec9641
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Surface {

public static boolean isOnSurface(Block block, Location playerLoc) {

return block.getRelative(BlockFace.UP).isEmpty();
return !block.getRelative(BlockFace.UP).isSolid();

// keep the old logic, implement tri state surface mode
/*
Expand Down

0 comments on commit bec9641

Please sign in to comment.