Skip to content

Commit

Permalink
fix fabric platform service looking for quilt
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Sep 14, 2024
1 parent 6175530 commit 9e87c04
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class FabricPlatformService extends BasePlatformService implements PlatformService {

private static final String QUILT_LOADER_MODID = "quilt_loader";
private static final String FABRIC_LOADER_MODID = "fabricloader";

private final Map<String, Optional<ModContainer>> MOD_CONTAINERS = new Object2ObjectOpenHashMap<>();
private final RuntimeEnvironmentType environmentType = switch (FabricLoader.getInstance().getEnvironmentType()) {
Expand All @@ -34,7 +34,7 @@ public class FabricPlatformService extends BasePlatformService implements Platfo
var os = info.getOperatingSystem();

var platformName = getPlatformName();
var platformVersion = getModContainer(QUILT_LOADER_MODID).orElseThrow(() -> new IllegalStateException("Unable to find quilt loader!")).metadata().version();
var platformVersion = getModContainer(FABRIC_LOADER_MODID).orElseThrow(() -> new IllegalStateException("Unable to find fabric loader!")).metadata().version();

var mcVersion = FabricLoaderImpl.INSTANCE.getGameProvider().getRawGameVersion();

Expand Down

0 comments on commit 9e87c04

Please sign in to comment.