Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CraftTweaker examples do not compile #7714

Closed
Witixin1512 opened this issue Jan 25, 2023 · 1 comment
Closed

CraftTweaker examples do not compile #7714

Witixin1512 opened this issue Jan 25, 2023 · 1 comment

Comments

@Witixin1512
Copy link

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

@pupnewfster
Copy link
Member

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

@pupnewfster pupnewfster added this to the 10.3.6 milestone Jan 30, 2023
pupnewfster added a commit that referenced this issue Jan 30, 2023
…onals causing some of our CrT example scripts to fail #7714. Also move our example scripts into a mekanism subfolder for better organization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants