mirror of
https://github.com/TimeCrafters/TimeCraftersConfigurationTool.git
synced 2025-12-16 05:22:35 +00:00
Automatically reload config if received config has the same name as the active config
This commit is contained in:
@@ -110,9 +110,11 @@ public class PacketHandler {
|
|||||||
|
|
||||||
final String path = TAC.CONFIGS_PATH + File.separator + configName + ".json";
|
final String path = TAC.CONFIGS_PATH + File.separator + configName + ".json";
|
||||||
|
|
||||||
Log.i(TAG, "Got valid json: " + json);
|
|
||||||
|
|
||||||
Backend.instance().writeToFile(path, json);
|
Backend.instance().writeToFile(path, json);
|
||||||
|
|
||||||
|
if (Backend.instance().getConfig().getName().equals(configName)) {
|
||||||
|
Backend.instance().loadConfig(configName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleDownloadConfig(Packet packet) {
|
private void handleDownloadConfig(Packet packet) {
|
||||||
|
|||||||
Reference in New Issue
Block a user