KubeJS (Old)

KubeJS (Old)

3M Downloads

ClassCastException: class jdk.proxy3.$Proxy87 cannot be cast to class net.minecraft.world.item.crafting.Ingredient

pietro-lopes opened this issue ยท 1 comments

commented

this should be safer, and ItemPredicate, not Ingredient

registry.removeEmiStacks(EMIIntegration.predicate((Ingredient) predicate));

When using EMI

RecipeViewerEvents.removeEntries("item",event => {
	// works fine
        event.remove("minecraft:oak_log")
        // does not work
	event.remove(stack => {
		return true
	})
})

https://gnomebot.dev/paste/mclogs/oJykgdW

commented

Fixed temporarily on KubeJS Tweaks