Skip to content

Commit

Permalink
change: Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashyReese committed Oct 3, 2021
1 parent 128ca1e commit 2a5c878
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 20 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2a5c878

Please sign in to comment.