diff --git a/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/ControlValueFormatterExtended.java b/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/ControlValueFormatterExtended.java deleted file mode 100644 index 029e3102..00000000 --- a/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/ControlValueFormatterExtended.java +++ /dev/null @@ -1,19 +0,0 @@ -package me.flashyreese.mods.sodiumextra.client.gui; - -import me.jellysquid.mods.sodium.client.gui.options.control.ControlValueFormatter; -import net.minecraft.text.TranslatableText; - -public interface ControlValueFormatterExtended extends ControlValueFormatter { - - static ControlValueFormatter fogDistance() { - return (v) -> { - if (v == 0) { - return new TranslatableText("generator.default").getString(); - } else if (v == 33) { - return new TranslatableText("options.off").getString(); - } else { - return new TranslatableText("options.chunks", v).getString(); - } - }; - } -} diff --git a/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/SodiumExtraGameOptionPages.java b/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/SodiumExtraGameOptionPages.java index 1fb41208..c59c4820 100644 --- a/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/SodiumExtraGameOptionPages.java +++ b/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/SodiumExtraGameOptionPages.java @@ -3,6 +3,7 @@ import com.google.common.collect.ImmutableList; import me.flashyreese.mods.sodiumextra.client.gui.options.control.SliderControlExtended; import me.flashyreese.mods.sodiumextra.client.gui.options.storage.SodiumExtraOptionsStorage; +import me.flashyreese.mods.sodiumextra.common.util.ControlValueFormatterExtended; import me.jellysquid.mods.sodium.client.gui.options.*; import me.jellysquid.mods.sodium.client.gui.options.control.ControlValueFormatter; import me.jellysquid.mods.sodium.client.gui.options.control.SliderControl; diff --git a/src/main/java/me/flashyreese/mods/sodiumextra/common/util/ControlValueFormatterExtended.java b/src/main/java/me/flashyreese/mods/sodiumextra/common/util/ControlValueFormatterExtended.java index 952d5f47..23df908a 100644 --- a/src/main/java/me/flashyreese/mods/sodiumextra/common/util/ControlValueFormatterExtended.java +++ b/src/main/java/me/flashyreese/mods/sodiumextra/common/util/ControlValueFormatterExtended.java @@ -15,4 +15,16 @@ static ControlValueFormatter resolution() { } }; } + + static ControlValueFormatter fogDistance() { + return (v) -> { + if (v == 0) { + return new TranslatableText("generator.default").getString(); + } else if (v == 33) { + return new TranslatableText("options.off").getString(); + } else { + return new TranslatableText("options.chunks", v).getString(); + } + }; + } } diff --git a/src/main/java/me/flashyreese/mods/sodiumextra/mixin/features/fog/MixinBackgroundRenderer.java b/src/main/java/me/flashyreese/mods/sodiumextra/mixin/features/fog/MixinBackgroundRenderer.java index 01ceb020..812878e4 100644 --- a/src/main/java/me/flashyreese/mods/sodiumextra/mixin/features/fog/MixinBackgroundRenderer.java +++ b/src/main/java/me/flashyreese/mods/sodiumextra/mixin/features/fog/MixinBackgroundRenderer.java @@ -15,7 +15,6 @@ import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; -import org.spongepowered.asm.mixin.injection.callback.LocalCapture; @Mixin(BackgroundRenderer.class) public class MixinBackgroundRenderer {