Add a transparent grey overlay over recipe output slot

This commit is contained in:
modmuss50 2018-08-03 17:55:59 +01:00
parent ee65ed0cbe
commit 7e49c30586
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -64,6 +64,16 @@ public class GuiAutoCrafting extends GuiBase {
itemRenderer.renderItemAndEffectIntoGUI(stack, x, y); itemRenderer.renderItemAndEffectIntoGUI(stack, x, y);
GlStateManager.disableLighting(); GlStateManager.disableLighting();
GlStateManager.pushMatrix();
GlStateManager.disableDepth();
GlStateManager.color(1, 1, 1, 1F / 3F);
drawRect(x - 4, y- 4, x + 20, y + 20, -2139062144);
GlStateManager.enableDepth();
GlStateManager.color(1F, 1F, 1F, 1F);
GlStateManager.enableBlend();
GlStateManager.popMatrix();
} }
} }