1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-12 10:20:28 +00:00

Migrate config to the server (rather than common)

This commit is contained in:
SquidDev 2020-05-15 23:05:14 +01:00
parent 5a816917d5
commit f36f532c63

View File

@ -73,7 +73,7 @@ public final class Config
private static final ConfigValue<MonitorRenderer> monitorRenderer; private static final ConfigValue<MonitorRenderer> monitorRenderer;
private static final ForgeConfigSpec commonSpec; private static final ForgeConfigSpec serverSpec;
private static final ForgeConfigSpec clientSpec; private static final ForgeConfigSpec clientSpec;
private Config() {} private Config() {}
@ -243,7 +243,7 @@ public final class Config
builder.pop(); builder.pop();
} }
commonSpec = builder.build(); serverSpec = builder.build();
Builder clientBuilder = new Builder(); Builder clientBuilder = new Builder();
monitorRenderer = clientBuilder monitorRenderer = clientBuilder
@ -255,7 +255,7 @@ public final class Config
public static void load() 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 ); ModLoadingContext.get().registerConfig( ModConfig.Type.CLIENT, clientSpec );
} }