1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

renamed c to count

This commit is contained in:
iTwins 2023-09-09 16:46:14 +02:00
parent 9c5114f9c2
commit d4b6c0aac8

View File

@ -235,12 +235,12 @@ public class BlockListener implements Listener {
* *
* @param block * @param block
* The {@link Block} in question * The {@link Block} in question
* @param c * @param count
* The amount of times this has been recursively called * The amount of times this has been recursively called
*/ */
@ParametersAreNonnullByDefault @ParametersAreNonnullByDefault
private void checkForSensitiveBlocks(Block block, Integer c) { private void checkForSensitiveBlocks(Block block, Integer count) {
if (c >= Bukkit.getServer().getMaxChainedNeighborUpdates()) { if (count >= Bukkit.getServer().getMaxChainedNeighborUpdates()) {
return; return;
} }
for (BlockFace face : CARDINAL_BLOCKFACES) { for (BlockFace face : CARDINAL_BLOCKFACES) {
@ -250,7 +250,7 @@ public class BlockListener implements Listener {
for (ItemStack drop : relative.getDrops()) { for (ItemStack drop : relative.getDrops()) {
block.getWorld().dropItemNaturally(relative.getLocation(), drop); block.getWorld().dropItemNaturally(relative.getLocation(), drop);
} }
checkForSensitiveBlocks(relative, ++c); checkForSensitiveBlocks(relative, ++count);
} }
} }
} }