Skip to content

Remove double negative in DaytimeCondition#4636

Merged
gustovafing merged 1 commit intoGregTechCEu:1.20.1from
screret:sc/fix-daytime-condition-double-negative
Feb 15, 2026
Merged

Remove double negative in DaytimeCondition#4636
gustovafing merged 1 commit intoGregTechCEu:1.20.1from
screret:sc/fix-daytime-condition-double-negative

Conversation

@screret
Copy link
Contributor

@screret screret commented Feb 15, 2026

What

That's literally it.
Level#isNight is just return !this.isDay();, so doing !level.isNight() is the same as doing level.isDay()

@screret screret requested a review from a team as a code owner February 15, 2026 15:07
@gustovafing gustovafing added the ignore changelog PR should not be added to the changelog. label Feb 15, 2026
@gustovafing gustovafing merged commit 6f96dcb into GregTechCEu:1.20.1 Feb 15, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 ignore changelog PR should not be added to the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants