We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 565cb30 commit 4291ff6Copy full SHA for 4291ff6
core/mizfile.py
@@ -55,6 +55,9 @@ def read_theatres(self):
55
for terrain in os.listdir(maps_path):
56
terrain_path = os.path.join(maps_path, terrain)
57
entry_lua = os.path.join(terrain_path, "entry.lua")
58
+ # sometimes, terrain folders stay even if the terrain is being uninstalled
59
+ if not os.path.exists(entry_lua):
60
+ continue
61
pattern = r'local self_ID\s*=\s*"(.*?)";'
62
with open(entry_lua, "r", encoding="utf-8") as file:
63
match = re.search(pattern, file.read())
0 commit comments