update to latest devbuild

fix #139
This commit is contained in:
C10udburst
2022-07-24 07:57:59 +02:00
parent d50b0e72c9
commit 99474abecb
8 changed files with 28 additions and 24 deletions

View File

@@ -65,7 +65,7 @@ public class GiveUtils {
}
}
public static void init() {
static {
STRING_PRESETS.forEach((preset) -> {
PRESETS.put(preset.getLeft(), (preview) -> {
if (preview) preset.getMiddle().getDefaultStack();

View File

@@ -2,10 +2,13 @@ package anticope.rejects.utils;
import anticope.rejects.utils.seeds.Seeds;
import meteordevelopment.meteorclient.MeteorClient;
import meteordevelopment.meteorclient.utils.PostInit;
public class RejectsUtils {
@PostInit
public static void init() {
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
System.out.println("saving seeds...");
RejectsConfig.get().save(MeteorClient.FOLDER);
Seeds.get().save(MeteorClient.FOLDER);
}));