From 22a8812fda10d1aa3ebae11d073b4d44c269bf43 Mon Sep 17 00:00:00 2001 From: Njb1286 Date: Tue, 25 Jun 2024 21:38:11 -0600 Subject: [PATCH] Make a static string into a template literal to avoid a bug in Minecraft where the score would be named "Param{i}" --- block_types/template_function_call_block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block_types/template_function_call_block.py b/block_types/template_function_call_block.py index 198e604..140d46d 100644 --- a/block_types/template_function_call_block.py +++ b/block_types/template_function_call_block.py @@ -42,7 +42,7 @@ def compile(self, func): # Calculate function arguments for i in range(len(args)): - assignto = scoreboard_var(f'Global', 'Param{i}') + assignto = scoreboard_var(f'Global', f'Param{i}') arg_var = args[i].compile(func, assignto) assignto.copy_from(func, arg_var)