Just Enough Items (JEI)

Just Enough Items (JEI)

369M Downloads

Rendering an IDrawable from createDrawableIngredient shifts everything

ThatGravyBoat opened this issue ยท 4 comments

commented

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,
2021-12-14_17 53 34
And this is what it looks like when rendering an item with it
2021-12-14_17 57 03

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

commented

So after a little bit of help from someone, it can be fixed by calling RenderSystem.applyModelViewMatrix(); after the draw method is called.

commented

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.

commented

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.

commented

I was able to reproduce this issue with the debug plugin, and submitted a fix. Thanks again!