Revert "update"

This reverts commit 6ff3523276.
This commit is contained in:
Leonwang4234
2020-09-06 17:43:54 -07:00
parent 6ff3523276
commit 3cd87c8174
367 changed files with 10567 additions and 12948 deletions

View File

@@ -161,7 +161,7 @@ public class ServerControl implements ApplicationListener{
});
//autosave periodically
Events.run(Trigger.update, () -> {
Events.on(Trigger.update, () -> {
if(state.isPlaying() && Config.autosave.bool()){
if(autosaveCount.get(Config.autosaveSpacing.num() * 60)){
int max = Config.autosaveAmount.num();
@@ -194,7 +194,7 @@ public class ServerControl implements ApplicationListener{
}
});
Events.run(Trigger.socketConfigChanged, () -> {
Events.on(Trigger.socketConfigChanged, () -> {
toggleSocket(false);
toggleSocket(Config.socketInput.bool());
});