Merge pull request #275 from tcooc/patch-3

Fix #267
This commit is contained in:
SirSengir 2012-09-15 14:09:25 -07:00
commit 066e9b1cb8

View file

@ -46,8 +46,6 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft {
if (!isDefined())
return;
GL11.glDisable(GL11.GL_LIGHTING);
if (getItemStack() != null)
drawStack(getItemStack());
else if (getTexture() != null && !getTexture().equals("")) {
@ -60,7 +58,6 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft {
drawTexturedModalRect(cornerX + x, cornerY + y, 16 * textureJ, 16 * textureI, 16, 16);
}
GL11.glEnable(GL11.GL_LIGHTING);
}
public void drawStack(ItemStack item) {
@ -166,11 +163,9 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft {
}
if (s.length() > 0) {
int i2 = (lastX - cornerX) + 12;
int k2 = lastY - cornerY - 12;
int l2 = fontRenderer.getStringWidth(s);
drawGradientRect(i2 - 3, k2 - 3, i2 + l2 + 3, k2 + 8 + 3, 0xc0000000, 0xc0000000);
fontRenderer.drawStringWithShadow(s, i2, k2, -1);
int i2 = (lastX - cornerX);
int k2 = lastY - cornerY;
func_74190_a(s, i2, k2);
}
}