From 262dc84d505808b0d3de67010925613e38309f64 Mon Sep 17 00:00:00 2001 From: CorranEveryone <81649947+CorranEveryone@users.noreply.github.com> Date: Sat, 13 Dec 2025 14:27:33 -1000 Subject: [PATCH] Fix color encoding for Custom Background Blocks --- PythonWalker/world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonWalker/world.py b/PythonWalker/world.py index 1a72d3f..94ab36e 100644 --- a/PythonWalker/world.py +++ b/PythonWalker/world.py @@ -128,7 +128,7 @@ def encode_argument(arg, data): blue = int(hex_blue, 16) uint32_color = (red << 16) | (green << 8) | blue - bytes = uint32_color.to_bytes(4, byteorder='little') + bytes = uint32_color.to_bytes(4, byteorder='big') else: raise ValueError(f"Argument id {arg} is not a valid block argument.")