Skip to content

Commit

Permalink
Migrate config to the server (rather than common)
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed May 15, 2020
1 parent 5a81691 commit f36f532
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/dan200/computercraft/shared/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
Expand Down Expand Up @@ -243,7 +243,7 @@ private Config() {}
builder.pop();
}

commonSpec = builder.build();
serverSpec = builder.build();

Builder clientBuilder = new Builder();
monitorRenderer = clientBuilder
Expand All @@ -255,7 +255,7 @@ private 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 );
}

Expand Down

0 comments on commit f36f532

Please sign in to comment.