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

Some errors are reported before others #111

Open
jaredlll08 opened this issue Nov 27, 2022 · 0 comments
Open

Some errors are reported before others #111

jaredlll08 opened this issue Nov 27, 2022 · 0 comments
Milestone

Comments

@jaredlll08
Copy link
Member

The following script:

<recipetype:thermal:refinery>.addRecipe("mock_fluidless_custom_refinery_recipe", <item:minecraft:dirt>, [], <fluid:minecraft:lava> * 250, 500);

gives:

machines.zs:46:104: machines.zs:46:104: Empty array with unknown type

The actual error is that it is missing a parameter, the header is:

addRecipe(String name, Percentaged<IItemStack> output, IFluidStack[] outputFluids, CTFluidIngredient input, float experience, int energy)

in this case, experience / energy was left out but ZC complains about the empty array instead of the missing parameter.

There are no overloaded methods, just this one.

@kindlich kindlich added this to the v1.0.0 milestone Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants