Error with adding an Induction Smelter recipe on a Dedicated Server
Firestar311 opened this issue ยท 2 comments
This worked on single player, but I had an error when trying to connect to a multiplayer server with the script below
ServerEvents.recipes(event => { event.remove({output: 'create:cinder_flour', type: 'thermal:pulverizer'}) event.remove({output: 'mekanism:steel_casing'}); event.recipes.thermal.smelter('mekanism:steel_casing', ['4x thermal:steel_ingot', '#forge:glass', 'mekanism:ingot_osmium']).energy(10000); })
Then when I changed the recipe to event.recipes.thermal.smelter('mekanism:steel_casing', ['thermal:steel_block', '#forge:glass', 'mekanism:ingot_osmium']).energy(10000);
it was fine
The error was as follows Internal Exception: io.netty.handler.codec.EncoderException: java.lang.ClassCastException: class cofh.lib.util.crafting.IngredientWithCount cannot be cast to class dev.latvian.mods.kubejs.platform.forge.ingredient.KubeJSIngredient (cofh.lib.util.crafting.IngredientWithCount is in module [email protected] of loader 'TRANSFORMER' @cd5ff55; dev.latvian.mods.kubejs.platform.forge.ingredient.KubeJSIngredient is in module [email protected] of loader 'TRANSFORMER' @cd5ff55)