Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

Commit bad87a2

Browse files
committed
fix text colors spilling over to arrows
1 parent a59252a commit bad87a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/de/guntram/mcmod/easiervillagertrading/BetterGuiMerchant.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.io.IOException;
99
import net.minecraft.client.gui.GuiButton;
1010
import net.minecraft.client.gui.GuiMerchant;
11+
import net.minecraft.client.renderer.GlStateManager;
1112
import net.minecraft.client.renderer.RenderHelper;
1213
import net.minecraft.enchantment.Enchantment;
1314
import net.minecraft.entity.player.InventoryPlayer;
@@ -114,8 +115,9 @@ protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
114115
}
115116
RenderHelper.disableStandardItemLighting();
116117

117-
// arrows; use standard item lighting for them so we need a separate loop
118-
this.mc.getTextureManager().bindTexture(icons);
118+
GlStateManager.color(1f, 1f, 1f, 1f); // needed so items don't get a text color overlay
119+
GlStateManager.enableBlend();
120+
this.mc.getTextureManager().bindTexture(icons); // arrows; use standard item lighting for them so we need a separate loop
119121
for (int i=0; i<trades.size(); i++) {
120122
MerchantRecipe trade=trades.get(i);
121123
if (!trade.isRecipeDisabled()

0 commit comments

Comments
 (0)