Skip to content

Commit

Permalink
fix: repare instance creation and alpha.4 version
Browse files Browse the repository at this point in the history
  • Loading branch information
Brancieq-Paul committed Feb 14, 2023
1 parent a4cf809 commit 96ad249
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions vanilla_installer/assets/versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"1.19.2 v1.0.4": "https://raw.githubusercontent.com/HB-Modding-Crew/Herobrine.fr-Optimized/main/Packwiz/1.0.4/pack.toml",
"1.19.2 v2.0.0-alpha.3": "https://raw.githubusercontent.com/HB-Modding-Crew/Herobrine.fr-Optimized/main/Packwiz/2.0.0-alpha.3/pack.toml"
"2.0.0-alpha.4": "https://raw.githubusercontent.com/HB-Modding-Crew/Herobrine.fr-Optimized/main/Packwiz/2.0.0-alpha.4/pack.toml"
}
4 changes: 1 addition & 3 deletions vanilla_installer/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,7 @@ def selectDirectory(self, parent) -> None:
dialog.setFileMode(QFileDialog.FileMode.Directory)
current_path = pathlib.Path(self.selectedLocation.toPlainText()).absolute()
if not current_path.exists():
current_path = (
pathlib.Path(mll.utils.get_minecraft_directory()).absolute().mkdir()
)
current_path.mkdir()
dialog.setDirectory(str(current_path))
config.write("path", str(current_path))
if dialog.exec():
Expand Down
2 changes: 1 addition & 1 deletion vanilla_installer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def run(
version = newest_version()
logger.info("Calling install_fabric to install Fabric.")
text_update("Installing Fabric...", widget=widget, interface=interface)
fabric_version = install_fabric(version, mc_dir)
fabric_version = install_fabric(version, mll.utils.get_minecraft_directory())
logger.debug("Downloading FO - calling download_pack.")
text_update(
"Starting the Herobrine.fr Optimized download...",
Expand Down

0 comments on commit 96ad249

Please sign in to comment.