fixed visual bug with guislider

This commit is contained in:
gaudus 2018-10-16 13:37:07 +02:00 committed by tterrag
parent ac210a3201
commit 7d2c8fa6ef
1 changed files with 1 additions and 4 deletions

View File

@ -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);
}
}