From f3f9d632c82232778d0b73dde91a188852d15311 Mon Sep 17 00:00:00 2001 From: Liyan Zhao Date: Wed, 24 Jul 2024 08:54:21 +0800 Subject: [PATCH] fix: the possibility of easter egg should be 0 since it is in developing. [publish beta] Signed-off-by: Liyan Zhao --- .../java/com/github/zly2006/reden/malilib/MalilibSettings.kt | 4 +--- .../reden/mixin/richTranslation/MixinTranslationStorage.java | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/github/zly2006/reden/malilib/MalilibSettings.kt b/src/main/java/com/github/zly2006/reden/malilib/MalilibSettings.kt index 5b0e5b47..43136839 100644 --- a/src/main/java/com/github/zly2006/reden/malilib/MalilibSettings.kt +++ b/src/main/java/com/github/zly2006/reden/malilib/MalilibSettings.kt @@ -45,9 +45,7 @@ private fun > T.debug() = apply { (DEBUG_TAB.add(this)) } @JvmField val SOLID_FACE_RENDERER = RedenConfigBoolean("solidFaceRenderer").generic() @JvmField val ENABLE_CLIENT_GLOW = RCBooleanHotkey("enableClientGlow", true, "LEFT_CONTROL,G").hotkey().generic() @JvmField val SOLID_FACE_SHAPE_PREDICATE = RedenConfigOptionList("solidFaceShapePredicate", ShapePredicateOptionEntry.FULL).generic() -@JvmField val FANCY_BLOCK_OUTLINE = RedenConfigBoolean("fancyBlockOutline", true).generic() -@JvmField val EASTER_EGG_RATE = RedenConfigInteger("easterEggRate", 3, 0, 100).generic() -@JvmField val SCROLL_AMOUNT = RedenConfigFloat("scrollAmount", 1.5f, 0f, 5f).generic() +@JvmField val EASTER_EGG_RATE = RedenConfigInteger("easterEggRate", 0, 0, 100).generic() // Micro Tick @JvmField val BREAKPOINT_RENDERER = RCBooleanHotkey("breakpointRenderer", false, "B", KeybindSettings.INGAME_BOTH).hotkey().mt() diff --git a/src/main/java/com/github/zly2006/reden/mixin/richTranslation/MixinTranslationStorage.java b/src/main/java/com/github/zly2006/reden/mixin/richTranslation/MixinTranslationStorage.java index 0c52598d..5abd0c31 100644 --- a/src/main/java/com/github/zly2006/reden/mixin/richTranslation/MixinTranslationStorage.java +++ b/src/main/java/com/github/zly2006/reden/mixin/richTranslation/MixinTranslationStorage.java @@ -32,8 +32,9 @@ public class MixinTranslationStorage implements com.github.zly2006.reden.access. @Unique private static final Map tempTextMap = new HashMap<>(); + @NotNull @Override - public @NotNull Map getTextMap$reden() { + public Map getTextMap$reden() { return textMap; }