From b617997bcb02ec20fcd18af9ce82a993fe77b973 Mon Sep 17 00:00:00 2001 From: Sebastian Beckmann Date: Tue, 25 Nov 2025 18:58:48 +0100 Subject: [PATCH] temporary hack --- src/main/java/tk/alex3025/headstones/utils/Headstone.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/tk/alex3025/headstones/utils/Headstone.java b/src/main/java/tk/alex3025/headstones/utils/Headstone.java index 47b8037..0c23a10 100644 --- a/src/main/java/tk/alex3025/headstones/utils/Headstone.java +++ b/src/main/java/tk/alex3025/headstones/utils/Headstone.java @@ -178,7 +178,8 @@ public class Headstone { for (int y = playerY - radius; y <= playerY + radius; y++) for (int z = playerZ - radius; z <= playerZ + radius; z++) { Block block = this.location.getWorld().getBlockAt(x,y,z); - if (block.getType().isEmpty()) + Material material = block.getType(); + if ((material == Material.AIR || material == Material.CAVE_AIR) && (!block.getWorld().getName().equals("world_the_end") || y >= 60)) return block; } @@ -188,7 +189,8 @@ public class Headstone { for (int y = playerY; y < 320; y++) { Block block = this.location.getWorld().getBlockAt(playerX, y, playerZ); - if (block.getType().isEmpty()) + Material material = block.getType(); + if ((material == Material.AIR || material == Material.CAVE_AIR) && (!block.getWorld().getName().equals("world_the_end") || y >= 60)) return block; }