fix: repair broken if-statement on line 162
This commit is contained in:
1 parent
e5377ef4bc
commit
c83f7e0141
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user