Skip to content

Commit 5334582

Browse files
ignore files that aren't ZIP or PCK
1 parent b46623b commit 5334582

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

loader/mod_loader.gd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,16 @@ func _load_mod_zips():
153153
while true:
154154
# Get the next file in the directory
155155
var mod_zip_file_name = dir.get_next()
156+
156157
# If there is no more file
157158
if mod_zip_file_name == '':
158159
# Stop loading mod zip files
159160
break
160161

162+
# Ignore files that aren't ZIP or PCK
163+
if mod_zip_file_name.get_extension() != "zip" && mod_zip_file_name.get_extension() != "pck":
164+
continue
165+
161166
# If the current file is a directory
162167
if dir.current_is_dir():
163168
# Go to the next file

0 commit comments

Comments
 (0)