mirror of
https://github.com/kaboomserver/extras.git
synced 2025-04-22 09:23:40 -04:00
Don't stop iterating if we find other cobwebs in spidey iterator
This commit is contained in:
parent
865de7f5bb
commit
c7b0531a69
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue