From e1d230dcb6c799bc2060f0d70d9d1135f5d37d64 Mon Sep 17 00:00:00 2001 From: JustAHuman-xD <65748158+JustAHuman-xD@users.noreply.github.com> Date: Fri, 8 Dec 2023 17:47:22 -0600 Subject: [PATCH] Patch hopefully --- .../slimefun4/implementation/listeners/BlockListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/BlockListener.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/BlockListener.java index 967a6ad6d6..beb241f7ad 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/BlockListener.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/BlockListener.java @@ -257,8 +257,9 @@ private void checkForSensitiveBlocks(Block block, Integer count) { if (count >= Bukkit.getServer().getMaxChainedNeighborUpdates()) { return; } + BlockData blockData = block.getBlockData(); + block.setType(Material.AIR, false); for (BlockFace face : CARDINAL_BLOCKFACES) { - block.setType(Material.AIR, false); if (!isSupported(block.getRelative(face).getBlockData(), block.getRelative(face))) { Block relative = block.getRelative(face); for (ItemStack drop : relative.getDrops()) { @@ -267,6 +268,7 @@ private void checkForSensitiveBlocks(Block block, Integer count) { checkForSensitiveBlocks(relative, ++count); } } + block.setBlockData(blockData, false); } /**