Skip to content

Commit

Permalink
Fix existing OptiFine install for MultiMC
Browse files Browse the repository at this point in the history
Fixes #107
  • Loading branch information
LeafHacker committed Aug 16, 2020
1 parent 75d8515 commit 1020bbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixes
- Fix using an already installed OptiFine version not working correctly for MultiMC instances ([#107](https://github.com/ImpactDevelopment/Installer/issues/107))

## [0.9.2] - 2020-08-09

### Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ public OptiFineExisting(Path libraries, String version) throws RuntimeException

@Override
protected void installOptiFine(Path destination, Path vanilla) throws IOException, InvocationTargetException, IllegalAccessException {
// No-op: this class was built from the installed OptiFine, "installing" it over itself is paradoxical
// This class was built from the installed OptiFine, so normally the destination _is_ the installer jar, however
// that isn't guaranteed, e.g. the installed jar could be used to install optiFine into a new MultiMC instance.
if (!Files.exists(destination)) {
super.installOptiFine(destination, vanilla);
}
}

@Override
Expand Down

0 comments on commit 1020bbf

Please sign in to comment.