Skip to content

Commit

Permalink
Fix inputGameJars ObjectShare mutating after being set
Browse files Browse the repository at this point in the history
Upstream from fabric-loader:
FabricMC/fabric-loader@1030e56
(Original PR: FabricMC/fabric-loader#876 )
  • Loading branch information
tildejustin authored and AlexIIL committed Feb 10, 2024
1 parent 0455613 commit 3389b7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public boolean locateGame(QuiltLauncher launcher, String[] args) {
// expose obfuscated jar locations for mods to more easily remap code from obfuscated to intermediary
ObjectShare share = QuiltLoaderImpl.INSTANCE.getObjectShare();
share.put("fabric-loader:inputGameJar", gameJars.get(0)); // deprecated
share.put("fabric-loader:inputGameJars", gameJars);
share.put("fabric-loader:inputGameJars", Collections.unmodifiableList(new ArrayList<>(gameJars))); // need to make copy as gameJars is later mutated to hold the remapped jars
if (realmsJar != null) share.put("fabric-loader:inputRealmsJar", realmsJar);

String version = arguments.remove(Arguments.GAME_VERSION);
Expand Down

0 comments on commit 3389b7c

Please sign in to comment.