From bec96413ada04f506a176a91aa31d696034de844 Mon Sep 17 00:00:00 2001 From: david Date: Sun, 9 Jun 2024 11:21:11 +0200 Subject: [PATCH] let surface check only test for non-solid blocks --- .../java/net/onelitefeather/bettergopaint/utils/Surface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/onelitefeather/bettergopaint/utils/Surface.java b/src/main/java/net/onelitefeather/bettergopaint/utils/Surface.java index de14a794..70d2dd31 100644 --- a/src/main/java/net/onelitefeather/bettergopaint/utils/Surface.java +++ b/src/main/java/net/onelitefeather/bettergopaint/utils/Surface.java @@ -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 /*