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 committed by opt
parent 989cda2998
commit 820cea9335

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;