No need to use setShaderTexture as blit does that already

This commit is contained in:
Mrbysco 2024-03-05 16:06:51 +01:00
parent 041381830f
commit 899b2a982b
5 changed files with 1 additions and 5 deletions

View file

@ -53,7 +53,7 @@ public class GuiCoalGenerator extends AAScreen<ContainerCoalGenerator> {
@Override
public void renderBg(GuiGraphics guiGraphics, float f, int x, int y) {
RenderSystem.setShaderTexture(0, AssetUtil.GUI_INVENTORY_LOCATION);
RenderSystem.setShaderColor(1F, 1F, 1F, 1F);
guiGraphics.blit(AssetUtil.GUI_INVENTORY_LOCATION, this.leftPos, this.topPos + 93, 0, 0, 176, 86);

View file

@ -56,7 +56,6 @@ public class GuiFeeder extends AAScreen<ContainerFeeder> {
RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);
guiGraphics.blit(AssetUtil.GUI_INVENTORY_LOCATION, this.leftPos, this.topPos + 70, 0, 0, 176, 86);
RenderSystem.setShaderTexture(0, RES_LOC);
guiGraphics.blit(RES_LOC, this.leftPos, this.topPos, 0, 0, 176, 70);
if (this.tileFeeder.currentTimer > 0) {

View file

@ -59,7 +59,6 @@ public class GuiFermentingBarrel extends AAScreen<ContainerFermentingBarrel> {
guiGraphics.blit(AssetUtil.GUI_INVENTORY_LOCATION, this.leftPos, this.topPos + 93, 0, 0, 176, 86);
RenderSystem.setShaderTexture(0, RES_LOC);
guiGraphics.blit(RES_LOC, this.leftPos, this.topPos, 0, 0, 176, 93);
if (this.press.currentProcessTime > 0) {

View file

@ -53,7 +53,6 @@ public class GuiMiner extends AAScreen<ContainerMiner> {
guiGraphics.blit(AssetUtil.GUI_INVENTORY_LOCATION, this.leftPos, this.topPos + 93, 0, 0, 176, 86);
RenderSystem.setShaderTexture(0, RES_LOC);
guiGraphics.blit(RES_LOC, this.leftPos, this.topPos, 0, 0, 176, 93);
String mining = this.miner.onlyMineOres

View file

@ -96,7 +96,6 @@ public class SackGui extends AAScreen<SackContainer> {
protected void renderBg(GuiGraphics guiGraphics, float partialTicks, int x, int y) {
RenderSystem.setShaderColor(1F, 1F, 1F, 1F);
RenderSystem.setShaderTexture(0, AssetUtil.GUI_INVENTORY_LOCATION);
guiGraphics.blit(AssetUtil.GUI_INVENTORY_LOCATION, this.leftPos, this.topPos + 90, 0, 0, 176, 86);
guiGraphics.blit(this.isVoid ? RES_LOC_VOID : RES_LOC, this.leftPos, this.topPos, 0, 0, 176, 90);