Skip to content

Commit 8651ef9

Browse files
authored
fix: 🐛 resize the path_array by - 3 (#275)
Fixed a bug where the path to the workshop directory was not set correctly.
1 parent 84a374d commit 8651ef9

File tree

1 file changed

+1
-1
lines changed
  • addons/mod_loader/internal/third_party

1 file changed

+1
-1
lines changed

addons/mod_loader/internal/third_party/steam.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static func _get_path_to_workshop() -> String:
6767

6868
# Traverse up to the steamapps directory (ie. `cd ..\..\` on Windows)
6969
var path_array := game_install_directory.split("/")
70-
path_array.resize(path_array.size() - 2)
70+
path_array.resize(path_array.size() - 3)
7171

7272
# Reconstruct the path, now that it has "common/GameName" removed
7373
path = "/".join(path_array)

0 commit comments

Comments
 (0)