Split the config file, update the config UI, and remove a few unused configs

This commit is contained in:
James Seibel
2024-10-12 20:39:42 -05:00
parent 9acda97f54
commit 7edfc40b9d
16 changed files with 26 additions and 43 deletions
@@ -69,7 +69,7 @@ public class MixinFogRenderer
boolean isSpecialFog = (entity instanceof LivingEntity) && ((LivingEntity) entity).hasEffect(MobEffects.BLINDNESS);
if (!isSpecialFog && cameraNotInFluid && fogMode == FogMode.FOG_TERRAIN
&& !SingletonInjector.INSTANCE.get(IMinecraftRenderWrapper.class).isFogStateSpecial()
&& Config.Client.Advanced.Graphics.Fog.disableVanillaFog.get())
&& !Config.Client.Advanced.Graphics.Fog.enableVanillaFog.get())
{
#if MC_VER < MC_1_17_1
RenderSystem.fogStart(A_REALLY_REALLY_BIG_VALUE);
@@ -91,7 +91,7 @@ public class MixinOptionsScreen extends Screen
@Inject(at = @At("RETURN"), method = "init")
private void lodconfig$init(CallbackInfo ci)
{
if (Config.Client.optionsButton.get())
if (Config.Client.showDhOptionsButtonInMinecraftUi.get())
{
#if MC_VER < MC_1_17_1
this.addButton(this.getOptionsButton());
@@ -19,7 +19,7 @@ public class MixinTextureUtil
at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/platform/GlStateManager;_texParameter(IIF)V"), remap = false)
private static void setLodBias(int target, int pname, float param)
{
float biasValue = Config.Client.Advanced.Graphics.AdvancedGraphics.lodBias.get().floatValue();
float biasValue = Config.Client.Advanced.Graphics.Quality.lodBias.get().floatValue();
if (biasValue != 0)
{
// The target is GL11.GL_TEXTURE_2D
@@ -33,11 +33,4 @@ public class OptifineAccessor extends AbstractOptifineAccessor
return "Optifine-Forge-1.18.X";
}
@Override
public HashSet<DhChunkPos> getNormalRenderedChunks()
{
// TODO: Impl proper methods here
return null;
}
}