Fix neoforge texture validation issue

This commit is contained in:
James Seibel
2026-03-19 07:00:49 -05:00
parent 823f204424
commit e4c5d8adab
@@ -87,11 +87,11 @@ public class MixinLightTexture
renderWrapper.setLightmapId(glTexture.glId(), clientLevel);
#elif MC_VER <= MC_1_21_10
GlTexture glTexture = (GlTexture) this.texture;
this.renderWrapper.setLightmapId(glTexture.glId(), clientLevel);
renderWrapper.setLightmapId(glTexture.glId(), clientLevel);
#else
// both options are available since the renderer can be changed to either Blaze3D or OpenGL
GlTexture glTexture = (GlTexture) this.texture;
renderWrapper.setLightmapId(glTexture.glId(), clientLevel);
int id = NeoforgeTextureUnwrapper.getGlTextureIdFromGpuTexture(this.texture);
renderWrapper.setLightmapId(id, clientLevel);
renderWrapper.setLightmapGpuTexture(this.texture, clientLevel);
#endif