Skip to content

Commit 85f2ca7

Browse files
authored
Merge branch 'Slimefun:master' into master
2 parents 6d4740d + ae983c9 commit 85f2ca7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners

src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/BlockListener.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ private void checkForSensitiveBlocks(Block block, Integer count) {
257257
if (count >= Bukkit.getServer().getMaxChainedNeighborUpdates()) {
258258
return;
259259
}
260+
BlockData blockData = block.getBlockData();
261+
block.setType(Material.AIR, false);
260262
for (BlockFace face : CARDINAL_BLOCKFACES) {
261-
block.setType(Material.AIR, false);
262263
if (!isSupported(block.getRelative(face).getBlockData(), block.getRelative(face))) {
263264
Block relative = block.getRelative(face);
264265
for (ItemStack drop : relative.getDrops()) {
@@ -267,6 +268,7 @@ private void checkForSensitiveBlocks(Block block, Integer count) {
267268
checkForSensitiveBlocks(relative, ++count);
268269
}
269270
}
271+
block.setBlockData(blockData, false);
270272
}
271273

272274
/**

0 commit comments

Comments
 (0)