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

Most mobs disappear from map at night #39

Open
Plastikmensch opened this issue Oct 5, 2022 · 0 comments · May be fixed by #40
Open

Most mobs disappear from map at night #39

Plastikmensch opened this issue Oct 5, 2022 · 0 comments · May be fixed by #40
Labels
bug Something isn't working
Milestone

Comments

@Plastikmensch
Copy link
Owner

Currently block light is the determining factor of whether a mob is considered hidden or not.
The issue is that block light changes based on time of day.
A block without a nearby light source therefore has a block light value of 15 (as sky light is considered in the calculation) during the day and 0 during night (while sky light still stays the same, but isn't considered in the calculation anymore).
Possible fix: Determine whether a mob is in a shadow based by a combination of sky light and block light.

@Plastikmensch Plastikmensch added this to the 2.0.0 milestone Oct 5, 2022
@Plastikmensch Plastikmensch linked a pull request Oct 10, 2022 that will close this issue
@Plastikmensch Plastikmensch linked a pull request Oct 11, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant