9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-23 00:39:16 +00:00

add 1gt features

This commit is contained in:
NONPLAYT
2025-07-10 04:33:33 +03:00
parent 5f54cc34f3
commit 08f2da878e
4 changed files with 108 additions and 0 deletions

View File

@@ -571,10 +571,15 @@ public class DivineConfig {
public static String logLevel = "WARN";
public static boolean onlyLogThrown = true;
// Old features
public static boolean copperBulb1gt = false;
public static boolean crafter1gt = false;
public static void load() {
secureSeed();
lagCompensation();
sentrySettings();
oldFeatures();
}
private static void secureSeed() {
@@ -609,6 +614,13 @@ public class DivineConfig {
if (sentryDsn != null && !sentryDsn.isBlank()) gg.pufferfish.pufferfish.sentry.SentryManager.init(Level.getLevel(logLevel));
}
private static void oldFeatures() {
copperBulb1gt = getBoolean(ConfigCategory.MISC.key("old-features.copper-bulb-1gt"), copperBulb1gt,
"Whether to delay the copper lamp by 1 tick when the redstone signal changes.");
crafter1gt = getBoolean(ConfigCategory.MISC.key("old-features.crafter-1gt"), crafter1gt,
"Whether to reduce the frequency of the crafter outputting items to 1 tick.");
}
}
public static class NetworkCategory {