Skip to content

Some errors are reported before others #111

@jaredlll08

Description

@jaredlll08

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions