Skip to content

Commit 218cd45

Browse files
APProcedurePatch: fix RLE/COPY incorrect sizing (#3006)
* change class variables to instance variables * Update worlds/Files.py Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> * Update worlds/Files.py Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> * move required_extensions to tuple * fix missing tuple ellipsis * fix classvar mixup * rename tokens to _tokens. use hasattr * type hint cleanup * Update Files.py * check using isinstance instead * Update Files.py --------- Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
1 parent 4196bde commit 218cd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worlds/Files.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def get_token_binary(self) -> bytes:
322322
data.append(args)
323323
elif token_type in [APTokenTypes.COPY, APTokenTypes.RLE]:
324324
assert isinstance(args, tuple), f"Arguments to COPY/RLE must be of type tuple, not {type(args)}"
325-
data.extend(int.to_bytes(4, 4, "little"))
325+
data.extend(int.to_bytes(8, 4, "little"))
326326
data.extend(args[0].to_bytes(4, "little"))
327327
data.extend(args[1].to_bytes(4, "little"))
328328
elif token_type == APTokenTypes.WRITE:

0 commit comments

Comments
 (0)