commit
066e9b1cb8
1 changed files with 3 additions and 8 deletions
|
@ -46,8 +46,6 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft {
|
||||||
if (!isDefined())
|
if (!isDefined())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
GL11.glDisable(GL11.GL_LIGHTING);
|
|
||||||
|
|
||||||
if (getItemStack() != null)
|
if (getItemStack() != null)
|
||||||
drawStack(getItemStack());
|
drawStack(getItemStack());
|
||||||
else if (getTexture() != null && !getTexture().equals("")) {
|
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);
|
drawTexturedModalRect(cornerX + x, cornerY + y, 16 * textureJ, 16 * textureI, 16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
GL11.glEnable(GL11.GL_LIGHTING);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void drawStack(ItemStack item) {
|
public void drawStack(ItemStack item) {
|
||||||
|
@ -166,11 +163,9 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s.length() > 0) {
|
if (s.length() > 0) {
|
||||||
int i2 = (lastX - cornerX) + 12;
|
int i2 = (lastX - cornerX);
|
||||||
int k2 = lastY - cornerY - 12;
|
int k2 = lastY - cornerY;
|
||||||
int l2 = fontRenderer.getStringWidth(s);
|
func_74190_a(s, i2, k2);
|
||||||
drawGradientRect(i2 - 3, k2 - 3, i2 + l2 + 3, k2 + 8 + 3, 0xc0000000, 0xc0000000);
|
|
||||||
fontRenderer.drawStringWithShadow(s, i2, k2, -1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue