Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #5155. Seems to work.
All the meshgen uses old-style light values (as they can always be reconstructed).
WARNING: converts the map to a new version. You will not be able to load the map in other Minetest versions. Making backup before testing is strongly recommended. (the conversion should always be reversible but MT can’t handle it. I wrote a tool for that but it is barely tested and supports sqlite only).
To do
This PR is Ready for Review. Let me know if I forgot anything.
How to test
Play with various sunlight&artificial light combinations. Try using client from this PR with server from master or vice versa. If it looks right it is probably right but light testing tool (devtest) may also be helpful (pay attention to
param1
, first digit is artificial light, second digit is sunlight).