Skip to content

Commit

Permalink
Move brigadier module to GAME layer
Browse files Browse the repository at this point in the history
Fixes #1439
  • Loading branch information
Su5eD committed Dec 21, 2024
1 parent f0ec6ce commit 8fb49ad
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import net.neoforged.fml.loading.LoadingModList;
import net.neoforged.neoforgespi.earlywindow.ImmediateWindowProvider;
import org.sinytra.connector.ConnectorEarlyLoader;
import org.sinytra.connector.locator.ConnectorLocator;
import org.sinytra.connector.service.hacks.ConnectorForkJoinThreadFactory;
import org.sinytra.connector.service.hacks.FabricASMFixer;
import org.sinytra.connector.service.hacks.LenientRuntimeEnumExtender;
Expand All @@ -38,6 +37,7 @@
public class ConnectorLoaderService implements ITransformationService {
private static final String NAME = "connector_loader";
private static final String AUTHLIB_MODULE = "authlib";
private static final String BRIGADIER_MODULE = "brigadier";
private static final Logger LOGGER = LogUtils.getLogger();
private static final VarHandle PLUGINS = uncheck(() -> ConnectorUtil.TRUSTED_LOOKUP.findVarHandle(LaunchPluginHandler.class, "plugins", Map.class));

Expand Down Expand Up @@ -122,7 +122,8 @@ public List<Resource> completeScan(IModuleLayerManager layerManager) {
}
return List.of(new Resource(IModuleLayerManager.Layer.GAME, List.of(
FabricASMFixer.provideGeneratedClassesJar(),
ModuleLayerMigrator.moveModule(AUTHLIB_MODULE)
ModuleLayerMigrator.moveModule(AUTHLIB_MODULE),
ModuleLayerMigrator.moveModule(BRIGADIER_MODULE)
)));
}

Expand Down

0 comments on commit 8fb49ad

Please sign in to comment.