Rendering an IDrawable from createDrawableIngredient shifts everything
ThatGravyBoat opened this issue ยท 4 comments
Bug Description
When rendering a IDrawable that is created using the createDrawableIngredient is shifts everything.
as shown below this is what it looks like when not rendering an item with it,
And this is what it looks like when rendering an item with it
Info
Mod Version: 9.1.0.44
Forge Version: 39.0.0
Mc Version: 1.18.1
The code for this category to see if I'm doing something silly. Source: https://github.com/Resourceful-Bees/ResourcefulBees/blob/f9445dfe5a32bcee7fe20868ea93b9168d95104e/src/main/java/com/teamresourceful/resourcefulbees/common/compat/jei/mutation/MutationCategory.java#L175
So after a little bit of help from someone, it can be fixed by calling RenderSystem.applyModelViewMatrix();
after the draw method is called.
Thanks for the report!
The fix makes sense to me, I'm a bit surprised that nobody else has run into this issue before though!
If you'd like to be credited as a contributor with the fix, you can open a Pull Request with this fix. Otherwise I can add it.
I'm good, you can add it. I don't feel like the fix is worthy of a credited PR with how small it is.