Skip to content

Commit 0d5e6d7

Browse files
committed
Fix: Incorrect handling of alternate sprites in nml pre-processing
For lines directly from a pnml, rather than an included pnml, the result from checking for alternate sprites for a line was not used.
1 parent ba8caee commit 0d5e6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/nml_preprocessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def handle_alternates(line):
141141
print("File not found:", os.path(base_path, import_path))
142142
else:
143143
include_line = handle_alternates(line)
144-
nml.write(line + "\n")
144+
nml.write(include_line + "\n")
145145
except FileNotFoundError:
146146
print("File not found:", sys.argv[1] + ".pnml")
147147

0 commit comments

Comments
 (0)