EMI

EMI

1M Downloads

GregTech machines not recognized as catalysts

steph-lion opened this issue ยท 4 comments

commented

When using tree, and using a recipe which uses a GT machine, its model does not appear in the tree.

image

By hovering it you can see the name but not the icon/model of the machine
image

commented

This appears to be an EMI bug that occurs if the batching renderer is disabled. Rendering of the GT machine is triggered by

batcher.render(b, context.raw(), x - 18 + midOffset, y - 8, delta);

as it is the category for the recipe.
The overload of StackBatcher.render which is called here (the one accepting a Batchable) does not appear to fall back and render the Batchable manually if batching is disabled, unlike the one accepting an EmiIngredient. This causes the machine to simply never be rendered.

commented

This is a correct diagnosis, weird, thanks.

commented

From my understanding this is simply the gregtech machines being rendered inconsistently with vanilla items and something they would need to fix, I believe they have a bug open.

commented

This is probably fixed in the latest release since the code now checks for StackBatcher being enabled.

if (StackBatcher.isEnabled() && EmiRecipeCategoryProperties.getSimplifiedIcon(cat) instanceof Batchable b) {