NuclearCraft

NuclearCraft

31M Downloads

CT method no longer allows "null" after passing to overhauled version

wormzjl opened this issue ยท 4 comments

commented

[NuclearCraft-2o.0.2-1.12.2]

My code:
mods.nuclearcraft.chemical_reactor.removeRecipeWithOutput([<liquid:methanol>*1000, null]);

Error in CT log:

[INITIALIZATION][CLIENT][ERROR] Processes\petrochem.zs:155 > a method available but none matches the parameters (any[])
This is usually an error in your script, not in the mod
removeRecipeWithOutput(ZenTypeNative: crafttweaker.item.IIngredient, ZenTypeNative: crafttweaker.item.IIngredient)

So is there any method which I can remove recipes with a single output now?

commented

Also add recipe method no longer allows a "null" inside

commented

The syntax for overhaul recipes has changed - you don't need the double brackets any more ;)

commented

No prob :)

commented

Cool, thanks for the reply!