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

[bug] optifine lightning #13

Open
lublak opened this issue Mar 20, 2021 · 6 comments · May be fixed by #56
Open

[bug] optifine lightning #13

lublak opened this issue Mar 20, 2021 · 6 comments · May be fixed by #56
Labels

Comments

@lublak
Copy link
Contributor

lublak commented Mar 20, 2021

Yes, I know. Optifine is evil.
Currently, the light output does not work with optifine.
I think it is a wontfix.
I'll still see if I can find something about it and if so I'll try to fix it myself. But it's unlikely, as I have no idea about either optifine or forge.
But maybe I'll find something anyway.
grafik

@dannydjdk dannydjdk added bug Something isn't working Mod Interaction labels Mar 20, 2021
@dannydjdk
Copy link
Owner

Strange, I guess optifine completely ignores and replaces Minecraft's native lighting updates(?). I wonder if placing and removing a torch next to it would cause an update.
If you can find something, that would be amazing. Otherwise, I'll look into it as a low priority issue. Optifine support for lighting would be nice but not critical.

@lublak
Copy link
Contributor Author

lublak commented Mar 20, 2021

@dannydjdk yes it cause an update. (edit: or not?)
is just not quite as critical.

@dannydjdk
Copy link
Owner

Optifine is ignoring the WorldLightManager's checkBlock() method.
I'll try not to lose any sleep over this one, but if a workaround surfaces, I'll try it.

@lublak
Copy link
Contributor Author

lublak commented Mar 21, 2021

@dannydjdk sleep is important!
Many mod developers do not support optifine.
It is closed sourced and therefore very difficult to support.
Yes it would be great.
But it also works without.

@lublak
Copy link
Contributor Author

lublak commented Mar 25, 2021

Just as a question to myself (so as a note):

Is it possible to use blockstates to display the current light intensity?

@dannydjdk
Copy link
Owner

We are overriding the Block's getLightValue(BlockState state, IBlockReader world, BlockPos pos) which is what vanilla Minecraft uses to get the light level for the BlockState. It seems as if Optifine is honoring that. It just isn't honoring the call to the WorldLightManager's checkBlock() method. So, it doesn't update the lighting when it's supposed to, but when it does decide to update the lighting, it seems that it's doing that correctly. Right?

This was linked to pull requests Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants