make seedoverlay not spam log sometimes, add save config btn

This commit is contained in:
Daniella / Tove 2024-05-29 21:34:23 +02:00
parent ae2b76b82c
commit de8320f219
3 changed files with 14 additions and 0 deletions

View file

@ -30,4 +30,8 @@ public class Configuration {
INSTANCE.registry.unregister(handle.name, handle.tcn);
handle.tcn = null;
}
public static void save() {
INSTANCE.registry.save();
}
}

View file

@ -1,5 +1,6 @@
package com.baseband.client.module.client;
import com.baseband.client.configuration.Configuration;
import com.baseband.client.configuration.annotation.Config;
import com.baseband.client.util.interact.ServerDataManager;
import com.baseband.client.util.misc.Description;
@ -51,6 +52,12 @@ public class Client extends Feature {
@Config("Clear targets")
public KeyBind clearTargetsBind = new KeyBind(null, this::clearTargets, this);
@Trigger("Save config")
public void saveConfig() {
Configuration.save();
BaseBand.notify("Config saved to disk");
}
public GuiTheme.ITheme getTheme() {
return theme;

View file

@ -120,6 +120,9 @@ public class SimpleWorldGenerator implements IChunkProvider {
continue;
}
}
try {
FieldFinder.findUnmarked(Chunk.class, ChunkPos.class, 0).set(null, null);
} catch (Exception ignored) {}
return false;
}