Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable lighting updates when using BlockChangeFlags#NONE #3579

Merged
merged 1 commit into from
Jan 9, 2022

Conversation

Lignium
Copy link
Contributor

@Lignium Lignium commented Jan 9, 2022

To disable lighting computation, native flag must be set to 1. In the API this value should be inverted and represented as false.
This fixes unwanted light computation when bulk update blocks when using this flag, which implies that lighting computation is turned off.

@gabizou
Copy link
Member

gabizou commented Jan 9, 2022

Very cool, thanks for the PR!

@gabizou gabizou merged commit 58fe5c2 into SpongePowered:api-8 Jan 9, 2022
@Lignium Lignium deleted the fix/update-lighting-flag branch January 9, 2022 17:05
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.

2 participants