bernie-g / geckolib

GeckoLib is an animation engine for Minecraft mods, with support for complex 3D keyframe-based animations, numerous easings, concurrent animation support, sound and particle keyframes, event keyframes, math-based animations, and more. Available for all major modloaders.
https://geckolib.com
MIT License
609 stars 127 forks source link

Set up lighting before getting VertexConsumer #584

Closed RaphiMC closed 5 months ago

RaphiMC commented 5 months ago

This PR modifies the GeoItemRenderer to set up lighting state before getting the VertexConsumer from the BufferSource. This allows other mods to access the correct lighting state when creating a VertexConsumer for rendering the item.

Helps to fix https://github.com/RaphiMC/ImmediatelyFast/issues/220