make seedoverlay not spam log sometimes, add save config btn
This commit is contained in:
parent
ae2b76b82c
commit
de8320f219
3 changed files with 14 additions and 0 deletions
|
@ -30,4 +30,8 @@ public class Configuration {
|
|||
INSTANCE.registry.unregister(handle.name, handle.tcn);
|
||||
handle.tcn = null;
|
||||
}
|
||||
|
||||
public static void save() {
|
||||
INSTANCE.registry.save();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue