mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 03:49:07 +00:00
Fixed blue/black background in machines GUI
This commit is contained in:
1 parent
d0215ce0aa
commit
8573f087eb
2 files changed
+3
-1
No files matched your search
@@ -66,7 +66,6 @@ public class RenderUtil {
|
||||
}
|
||||
minecraft.getRenderItem().renderItemOverlayIntoGUI(font, itemStack, pos.x(), pos.y(), null);
|
||||
|
||||
GlStateManager.disableBlend();
|
||||
net.minecraft.client.renderer.RenderHelper.disableStandardItemLighting();
|
||||
GlStateManager.popAttrib();
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
import net.minecraft.client.renderer.GlStateManager;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
@@ -173,6 +174,7 @@ public class ControlTileSelect extends Control implements IControlValue<IDesign>
|
||||
public void onRenderForeground(int guiWidth, int guiHeight) {
|
||||
final ItemStack image = ((WindowWoodworker) this.getTopParent()).getDesignerType().getDisplayStack(this.getValue());
|
||||
RenderUtil.drawItem(new Point(1, 1), image);
|
||||
GlStateManager.disableBlend();
|
||||
if (((IControlValue) this.getParent()).getValue() != this.getValue()) {
|
||||
if (Window.get(this).getMousedOverWidget() == this) {
|
||||
RenderUtil.drawGradientRect(this.getArea().inset(1), 1157627903, 1157627903);
|
||||
@@ -180,6 +182,7 @@ public class ControlTileSelect extends Control implements IControlValue<IDesign>
|
||||
RenderUtil.drawGradientRect(this.getArea().inset(1), -1433892728, -1433892728);
|
||||
}
|
||||
}
|
||||
GlStateManager.enableBlend();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user