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:
parent
9c5114f9c2
commit
d4b6c0aac8
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user