Mekanism Tools

Mekanism Tools

77M Downloads

CraftTweaker examples do not compile

Witixin1512 opened this issue ยท 1 comments

commented

Issue description

The CraftTweaker example scripts mekanism_separating.zs and mekanism_reaction.zs are stopping CraftTweaker from reloading as they fail to compile.

For mekanism_separating.zs the erroring line is <recipetype:mekanism:separating>.addRecipe("separator/sulfur_trioxide", FluidStackIngredient.from(<tag:fluids:forge:sulfur_trioxide>, 2), <gas:mekanism:oxygen>, <gas:mekanism:sulfur_dioxide> * 2);, which corresponds to line 13. The issue seems to be the optional value not being properly casted to FloatingLong when not present...

For mekanism_reaction.zs the erroring lines are 44, 54, and 100. The same issue as above.

For both the error looks like this. This is taken from the craftTweaker.log file, and I cannot generate the debug classes as it fails to even compile.

[ERROR]: internal: class mekanism.common.integration.crafttweaker.recipe.manager.ElectrolysisRecipeManager#addRecipe:1:0: Cannot cast int to FloatingLong, even explicitly

I hope this helps! I'm thinking this is probably an issue due to how the @optional parameter is declared...

Steps to reproduce

  1. Install Mekanism and CraftTweaker
  2. Run /ct examples
  3. Run /reload:

Minecraft version

1.19.2 (Latest)

Forge version

43.2.0

Mekanism version

10.3.5 (Latest)

Other relevant versions

No response

If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)

No response

commented

No idea why this randomly started happening as I had thought the examples worked fine back in 1.16 (at least towards the end)? Though this issue is related to ZenCodeLang/ZenCode#31