Open Celivalg opened 1 year ago
Moved LightMap update to invoke of DynamicTexture.upload() inside LightTexture.updateLightTexture()
DynamicTexture.upload()
LightTexture.updateLightTexture()
This allow other mods to get the LightMap after TrueDarkness updates it (aka DH, see #30 )
Tested on 1.19.2 on both Forge and Fabric
As a consequence, the MixinDynamicTexture is not needed at all anymore, this streamlines the code a bit more.
MixinDynamicTexture
I couldn't make the 1.19 branch build and I don't know what's up with it, but 1.19.2 worked fine so here I am
wonderful change @Celivalg
Great work! Hope you don't mind me implementing this change into my updated fork.
Moved LightMap update to invoke of
DynamicTexture.upload()
insideLightTexture.updateLightTexture()
This allow other mods to get the LightMap after TrueDarkness updates it (aka DH, see #30 )
Tested on 1.19.2 on both Forge and Fabric
As a consequence, the
MixinDynamicTexture
is not needed at all anymore, this streamlines the code a bit more.I couldn't make the 1.19 branch build and I don't know what's up with it, but 1.19.2 worked fine so here I am