diff --git a/src/main/java/meteordevelopment/meteorclient/renderer/Mesh.java b/src/main/java/meteordevelopment/meteorclient/renderer/Mesh.java index 47bd3ba575..53b23e329b 100644 --- a/src/main/java/meteordevelopment/meteorclient/renderer/Mesh.java +++ b/src/main/java/meteordevelopment/meteorclient/renderer/Mesh.java @@ -6,6 +6,7 @@ package meteordevelopment.meteorclient.renderer; import com.mojang.blaze3d.systems.RenderSystem; +import meteordevelopment.meteorclient.systems.config.Config; import meteordevelopment.meteorclient.utils.Utils; import meteordevelopment.meteorclient.utils.render.color.Color; import net.minecraft.client.util.math.MatrixStack; @@ -250,7 +251,11 @@ public void beginRender(MatrixStack matrices) { else GL.disableDepth(); GL.enableBlend(); GL.disableCull(); - GL.enableLineSmooth(); + + Config config = Config.get(); + if (config.smoothLines.get()) { + GL.enableLineSmooth(); + } if (rendering3D) { Matrix4fStack matrixStack = RenderSystem.getModelViewStack(); diff --git a/src/main/java/meteordevelopment/meteorclient/systems/config/Config.java b/src/main/java/meteordevelopment/meteorclient/systems/config/Config.java index 64c157ea9c..a010a2e86f 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/config/Config.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/config/Config.java @@ -31,6 +31,13 @@ public class Config extends System { // Visual + public final Setting smoothLines = sgVisual.add(new BoolSetting.Builder() + .name("smooth-lines") + .description("Render lines smoothly. Disable if you are experiencing graphical issues.") + .defaultValue(true) + .build() + ); + public final Setting customFont = sgVisual.add(new BoolSetting.Builder() .name("custom-font") .description("Use a custom font.")