mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-12 02:10:30 +00:00
Migrate config to the server (rather than common)
This commit is contained in:
parent
5a816917d5
commit
f36f532c63
@ -73,7 +73,7 @@ public final class Config
|
||||
|
||||
private static final ConfigValue<MonitorRenderer> monitorRenderer;
|
||||
|
||||
private static final ForgeConfigSpec commonSpec;
|
||||
private static final ForgeConfigSpec serverSpec;
|
||||
private static final ForgeConfigSpec clientSpec;
|
||||
|
||||
private Config() {}
|
||||
@ -243,7 +243,7 @@ public final class Config
|
||||
builder.pop();
|
||||
}
|
||||
|
||||
commonSpec = builder.build();
|
||||
serverSpec = builder.build();
|
||||
|
||||
Builder clientBuilder = new Builder();
|
||||
monitorRenderer = clientBuilder
|
||||
@ -255,7 +255,7 @@ public final class Config
|
||||
|
||||
public static void load()
|
||||
{
|
||||
ModLoadingContext.get().registerConfig( ModConfig.Type.COMMON, commonSpec );
|
||||
ModLoadingContext.get().registerConfig( ModConfig.Type.SERVER, serverSpec );
|
||||
ModLoadingContext.get().registerConfig( ModConfig.Type.CLIENT, clientSpec );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user