Skip to content

Commit

Permalink
renamed c to count
Browse files Browse the repository at this point in the history
  • Loading branch information
iTwins committed Sep 9, 2023
1 parent 9c5114f commit d4b6c0a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ private void dropItems(BlockBreakEvent e, List<ItemStack> drops) {
*
* @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) {
Expand All @@ -250,7 +250,7 @@ private void checkForSensitiveBlocks(Block block, Integer c) {
for (ItemStack drop : relative.getDrops()) {
block.getWorld().dropItemNaturally(relative.getLocation(), drop);
}
checkForSensitiveBlocks(relative, ++c);
checkForSensitiveBlocks(relative, ++count);
}
}
}
Expand Down

0 comments on commit d4b6c0a

Please sign in to comment.