Fix Forge compiling

This commit is contained in:
James Seibel
2024-10-14 07:40:24 -05:00
parent 449c87982c
commit 9ca6a2116b
3 changed files with 2 additions and 9 deletions
@@ -56,7 +56,7 @@ public class MixinOptionsScreen extends Screen
@Inject(at = @At("HEAD"), method = "init") @Inject(at = @At("HEAD"), method = "init")
private void lodconfig$init(CallbackInfo ci) private void lodconfig$init(CallbackInfo ci)
{ {
if (Config.Client.optionsButton.get()) if (Config.Client.showDhOptionsButtonInMinecraftUi.get())
this. #if MC_VER < MC_1_17_1 addButton #else addRenderableWidget #endif this. #if MC_VER < MC_1_17_1 addButton #else addRenderableWidget #endif
(new TexturedButtonWidget( (new TexturedButtonWidget(
// Where the button is on the screen // Where the button is on the screen
@@ -19,7 +19,7 @@ public class MixinTextureUtil
at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/platform/GlStateManager;_texParameter(IIF)V"), remap = false) 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) 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) if (biasValue != 0)
{ {
// The target is GL11.GL_TEXTURE_2D // The target is GL11.GL_TEXTURE_2D
@@ -33,11 +33,4 @@ public class OptifineAccessor extends AbstractOptifineAccessor
return "Optifine-Forge-1.18.X"; return "Optifine-Forge-1.18.X";
} }
@Override
public HashSet<DhChunkPos> getNormalRenderedChunks()
{
// TODO: Impl proper methods here
return null;
}
} }