Skip to content

Conversation

OptimisticDeving
Copy link
Contributor

Each call of next() to a Java Iterator will cause the iterator to iterate forwards, so this would cause the previous code to iterate forwards 3 times instead of the one iteration we actually checked if it's safe to do.

This would cause an NPE when the end of the block iterator was reached. It also caused the spider web to look ugly since a lot of blocks were missed due to the erroneous iterator iteration.

@kaboombot kaboombot merged commit fce68a8 into kaboomserver:master Mar 8, 2025
1 check failed
@OptimisticDeving OptimisticDeving deleted the fix-spidey-npe branch March 8, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants