Skip to content

RecipeViewerEvents RemoveCategory fails if both EMI and JEI are installed #1135

Description

@RedRaspberry

Minecraft Version

1.21.1

KubeJS Version

2101.7.2-build.368

Rhino Version

2101.2.7-build.81

Architectury Version

n/a

Forge/Fabric Version

neoforge 21.1.233

Describe your issue

The following kubejs (client script) functions correctly and will hide the crafting table recipe tab if only JEI, or only EMI, is installed (I tested both cases):

RecipeViewerEvents.removeCategories(event => {
	event.remove('minecraft:crafting')
})

However, if both EMI and JEI are installed (a feature of EMI that allows it to have compat with mods that register JEI specific recipe tabs), the crafting recipe tab will not be hidden. This is true for all other tabs I tested on.
Unsure if I should also post this issue to EMI's tracker or if this is already known and has a workaround. There are no errors in any logs regarding this behavior.

I did not test to check if any other related functionality in recipeviewerevents is impacted in the same way.

client.log

Crash report/logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions