Skip to content

Conversation

@R00tB33rMan
Copy link

I addressed these in my larger Folia pull request, and because of rejection, I would like to forward these upstream separately. I am confident a lot of these issues aren't intentional. If any of these changes are deliberate, I'd be more than happy to revise!

@R00tB33rMan R00tB33rMan requested a review from a team as a code owner November 4, 2025 23:22
Copy link
Member

@SirYwell SirYwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly good, but please take another look at the usages of getBlockIS() regarding nullness if you're already at it.

if (region != null && !region.contains(ox, oz)) {
return summary;
}
try (FaweInputStream fis = getBlockIS()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if getBlockIS() can indeed return null, then this needs to be covered here as well

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if getBlockIS() can indeed return null, then this needs to be covered here as well

Assuming you just wanted a simple NPE check, done so.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be possible to just do the null check at the top inside the try-with-resources statement, no?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be possible to just do the null check at the top inside the try-with-resources statement, no?

I guess that would take a cleaner approach. I'm dumb.

Copy link
Member

@SirYwell SirYwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants