From 9140b39f651dbf7840cefe77fbd4db6528b9acb1 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 22 Jul 2016 00:58:39 +0200 Subject: [PATCH] Fixed the energy bar turning green when holding a redstone torch --- .../de/ellpeck/actuallyadditions/mod/event/ClientEvents.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java b/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java index 8741a756e..a4fd003a4 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java @@ -22,6 +22,7 @@ import net.minecraft.block.BlockRedstoneTorch; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.GuiScreen; +import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; @@ -180,7 +181,11 @@ public class ClientEvents{ energyDisplay = new EnergyDisplay(0, 0, null); } energyDisplay.setData(2, event.getResolution().getScaledHeight()-96, display.getEnergyStorage(), true, true); + + GlStateManager.pushMatrix(); + GlStateManager.color(1F, 1F, 1F, 1F); energyDisplay.draw(); + GlStateManager.popMatrix(); profiler.endSection(); }