From d4b6c0aac8d510fcc1bab2f19f877ce95c371822 Mon Sep 17 00:00:00 2001 From: iTwins Date: Sat, 9 Sep 2023 16:46:14 +0200 Subject: [PATCH] renamed c to count --- .../slimefun4/implementation/listeners/BlockListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 b919ac098..46152d988 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 @@ -235,12 +235,12 @@ public class BlockListener implements Listener { * * @param block * The {@link Block} in question - * @param c + * @param count * The amount of times this has been recursively called */ @ParametersAreNonnullByDefault - private void checkForSensitiveBlocks(Block block, Integer c) { - if (c >= Bukkit.getServer().getMaxChainedNeighborUpdates()) { + private void checkForSensitiveBlocks(Block block, Integer count) { + if (count >= Bukkit.getServer().getMaxChainedNeighborUpdates()) { return; } for (BlockFace face : CARDINAL_BLOCKFACES) { @@ -250,7 +250,7 @@ public class BlockListener implements Listener { for (ItemStack drop : relative.getDrops()) { block.getWorld().dropItemNaturally(relative.getLocation(), drop); } - checkForSensitiveBlocks(relative, ++c); + checkForSensitiveBlocks(relative, ++count); } } }