diff options
| author | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-23 21:09:08 +0000 |
|---|---|---|
| committer | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-23 21:09:08 +0000 |
| commit | 4e15b847ada05e7539ca2b8e45dce770f1b300ef (patch) | |
| tree | 4a202c8a35aca8953893bb8b41157ea08a3c2825 /src/main | |
| parent | b5434aa054090fd8a3c67590363c0638cb7eb612 (diff) | |
style(game): add mod_id prefix to all gamerules
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/java/world/anhgelus/molehunt/Molehunt.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/world/anhgelus/molehunt/Molehunt.java b/src/main/java/world/anhgelus/molehunt/Molehunt.java index aba2ad4..7a55450 100644 --- a/src/main/java/world/anhgelus/molehunt/Molehunt.java +++ b/src/main/java/world/anhgelus/molehunt/Molehunt.java @@ -39,22 +39,22 @@ public class Molehunt implements ModInitializer { public static final SimpleConfig CONFIG_FILE = Config.configFile(MOD_ID); public static final GameRules.Key<GameRules.IntRule> GAME_DURATION = GameRuleRegistry.register( - "gameDuration", + MOD_ID +":gameDuration", GameRules.Category.MISC, GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("game_duration", 90)) ); public static final GameRules.Key<GameRules.IntRule> MOLE_PERCENTAGE = GameRuleRegistry.register( - "molePercentage", + MOD_ID +":molePercentage", GameRules.Category.MISC, GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("mole_percentage", 25)) ); public static final GameRules.Key<GameRules.IntRule> MOLE_COUNT = GameRuleRegistry.register( - "moleCount", + MOD_ID +":moleCount", GameRules.Category.MISC, GameRuleFactory.createIntRule(CONFIG_FILE.getOrDefault("mole_count", -1)) ); public static final GameRules.Key<GameRules.BooleanRule> SHOW_NAMETAGS = GameRuleRegistry.register( - "showNametags", + MOD_ID +":showNametags", GameRules.Category.MISC, GameRuleFactory.createBooleanRule(CONFIG_FILE.getOrDefault("show_nametags", false), (server, val) -> { if (CONFIG == null) return; @@ -62,7 +62,7 @@ public class Molehunt implements ModInitializer { }) ); public static final GameRules.Key<GameRules.BooleanRule> SHOW_TAB = GameRuleRegistry.register( - "showTab" + MOD_ID +":showTab" , GameRules.Category.MISC, GameRuleFactory.createBooleanRule(CONFIG_FILE.getOrDefault("show_tab", false), (server, val) -> { if (CONFIG == null) return; @@ -70,7 +70,7 @@ public class Molehunt implements ModInitializer { }) ); public static final GameRules.Key<GameRules.BooleanRule> SHOW_SKINS = GameRuleRegistry.register( - "showSkins", + MOD_ID +":showSkins", GameRules.Category.MISC, GameRuleFactory.createBooleanRule(CONFIG_FILE.getOrDefault("show_skins", false), (server, val) -> { if (CONFIG == null) return; |
