fix: repair broken if-statement on line 162

This commit is contained in:
rgriffith committed 2026-03-19 21:45:42 -04:00
1 parent e5377ef4bc
commit c83f7e0141
1 file changed
+1 -1
+1 -1
View File
@@ -159,7 +159,7 @@ def _resolve_forge_dir() -> str:
return str(candidate)
# Also try just one level up from target/
candidate = jar_path.parent.parent
andidate / "res").is_dir():
if candidate.is_dir() and (candidate / "res").is_dir():
return str(candidate)
# Fall back to the directory containing the JAR itself
candidate = jar_path.parent