1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2026-07-05 10:52:45 +00:00

Add command to reload config from disk

Also bump version number, as we're relatively close to a release and
it's frustrating having to bump it when putting out previews.
This commit is contained in:
SquidDev
2018-02-16 09:33:40 +00:00
parent 678462d2db
commit 20dcb32bae
3 changed files with 27 additions and 8 deletions
@@ -277,6 +277,18 @@ public class ComputerCraft
// Load config
Config.config = new Configuration( event.getSuggestedConfigurationFile() );
loadConfig();
// Setup network
networkEventChannel = NetworkRegistry.INSTANCE.newEventDrivenChannel( "CC" );
networkEventChannel.register( new PacketHandler() );
proxy.preInit();
turtleProxy.preInit();
}
public static void loadConfig()
{
Config.config.load();
Config.http_enable = Config.config.get( Configuration.CATEGORY_GENERAL, "http_enable", http_enable );
@@ -374,13 +386,6 @@ public class ComputerCraft
}
syncConfig();
// Setup network
networkEventChannel = NetworkRegistry.INSTANCE.newEventDrivenChannel( "CC" );
networkEventChannel.register( new PacketHandler() );
proxy.preInit();
turtleProxy.preInit();
}
public static void syncConfig() {