fixed visual bug with guislider

This commit is contained in:
gaudus authored and tterrag committed 2019-04-11 17:38:01 -04:00
1 parent ac210a3201
commit 7d2c8fa6ef
1 file changed
+1 -4
@@ -20,7 +20,6 @@
package net.minecraftforge.fml.client.config;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GlStateManager;
import javax.annotation.Nullable;
@@ -117,9 +116,7 @@ public class GuiSlider extends GuiButtonExt
updateSlider();
}
GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);
this.drawTexturedModalRect(this.x + (int)(this.sliderValue * (float)(this.width - 8)), this.y, 0, 66, 4, 20);
this.drawTexturedModalRect(this.x + (int)(this.sliderValue * (float)(this.width - 8)) + 4, this.y, 196, 66, 4, 20);
GuiUtils.drawContinuousTexturedBox(BUTTON_TEXTURES, this.x + (int)(this.sliderValue * (float)(this.width - 8)), this.y, 0, 66, 8, this.height, 200, 20, 2, 3, 2, 2, this.zLevel);
}
}