Skip to content

Template functions with parameters dont compile correctly #52

@ADrogoon

Description

@ADrogoon

inside template_function_call_block.py there is a typo at line 46 :

Calculate function arguments

for i in range(len(args)):
assignto = scoreboard_var(f'Global', 'Param{i}')
arg_var = args[i].compile(func, assignto)

there is a f behind 'Global' instead of 'Param{i}' which causes call blocks to compile incorrectly, which means template functions with parameters compile to :
scoreboard players operation Global Param{i} = Global Variable
instead of :
scoreboard players operation Global Param0 = Global Variable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions