Don't stop iterating if we find other cobwebs in spidey iterator

This commit is contained in:
OptimisticDeving 2025-02-17 05:12:42 +00:00
parent 865de7f5bb
commit c7b0531a69
Signed by: opt
SSH key fingerprint: SHA256:efAXeDMyuFt1iia2xaqlrcHPlsXcjQEWNA2tmvVTqK8

View file

@ -41,7 +41,7 @@ public final class CommandSpidey implements CommandExecutor {
while (blockIterator.hasNext()) {
final Block block = blockIterator.next();
if (!block.getType().isAir()) break;
if (block.getType() != Material.COBWEB && !block.getType().isAir()) break;
block.setType(Material.COBWEB);
}
return true;