fix all the things!

This commit is contained in:
Progwml6 committed 2014-01-30 00:16:48 -05:00
1 parent 2a932bc40a
commit 5076fc074d
12 files changed
+26 -26

No files matched your search

@@ -178,7 +178,7 @@ public class AdaptiveSmelteryGui extends NewContainerGui
this.field_146297_k.getTextureManager().bindTexture(TextureMap.locationBlocksTexture);
if (scomp.fuelGague > 0)
{
IIcon lavaIcon = Blocks.lava.getIcon(0, 0);
IIcon lavaIcon = Blocks.lava.func_149691_a(0, 0);
int fuel = scomp.getScaledFuelGague(52);
int count = 0;
while (fuel > 0)
@@ -359,7 +359,7 @@ public class AdaptiveSmelteryGui extends NewContainerGui
while (iterator.hasNext())
{
String s = (String) iterator.next();
int l = this.field_146289_q.getStringfield_146294_l(s);
int l = this.field_146289_q.getStringWidth(s);
if (l > k)
{
@@ -45,7 +45,7 @@ public class CraftingStationGui extends GuiContainer
this.field_146289_q.drawString(StatCollector.translateToLocal(logic.tinkerTable ? "crafters.TinkerTable" : logic.getInvName()), 8, 6, 0x202020);
this.field_146289_q.drawString(StatCollector.translateToLocal("container.inventory"), 8, this.ySize - 96 + 2, 0x202020);
if (logic.chest != null)
this.field_146289_q.drawString(StatCollector.translateToLocal(logic.chest.get().getInvName()), -108, this.ySize - 160, 0x202020);
this.field_146289_q.drawString(StatCollector.translateToLocal(logic.chest.get().func_145825_b()), -108, this.ySize - 160, 0x202020);
//this.field_146289_q.drawString(toolName + "_", this.xSize / 2 - 18, 8, 0xffffff);
if (logic.tinkerTable)
@@ -30,7 +30,7 @@ public class FurnaceGui extends GuiContainer
protected void drawGuiContainerForegroundLayer (int par1, int par2)
{
String s = this.logic.isInvNameLocalized() ? this.logic.getInvName() : I18n.getStringParams(this.logic.getInvName());
this.field_146289_q.drawString(s, this.xSize / 2 - this.field_146289_q.getStringfield_146294_l(s) / 2, 6, 4210752);
this.field_146289_q.drawString(s, this.xSize / 2 - this.field_146289_q.getStringWidth(s) / 2, 6, 4210752);
this.field_146289_q.drawString(I18n.getStringParams("container.inventory"), 8, this.ySize - 96 + 2, 4210752);
}
@@ -47,7 +47,7 @@ public class GuiLandmine extends GuiContainer
{
if (k == 0)
{
list.set(k, "\u00a7" + Integer.toHexString(par1ItemStack.getRarity().rarityColor) + (String) list.get(k));
list.set(k, "\u00a7" + Integer.toHexString(par1ItemStack.getRarity().rarityColor.func_96298_a()) + (String) list.get(k));
}
else
{
@@ -99,7 +99,7 @@ public abstract class NewContainerGui extends GuiScreen
*/
public void drawScreen (int mouseX, int mouseY, float par3)
{
this.drawDefaultBackground();
this.func_146276_q_();
int gLeft = this.guiLeft;
int gTop = this.guiTop;
this.drawGuiContainerBackgroundLayer(par3, mouseX, mouseY);
@@ -226,7 +226,7 @@ public class PartCrafterGui extends NewContainerGui
if (this.field_146297_k.gameSettings.touchscreen && flag1 && this.field_146297_k.thePlayer.inventory.getItemStack() == null)
{
this.field_146297_k.displayGuiScreen((GuiScreen) null);
this.field_146297_k.func_147108_a((GuiScreen) null);
return;
}
@@ -167,7 +167,7 @@ public class SmelteryGui extends NewContainerGui
this.field_146297_k.getTextureManager().bindTexture(TextureMap.locationBlocksTexture);
if (logic.fuelGague > 0)
{
IIcon lavaIcon = Blocks.lava.getIcon(0, 0);
IIcon lavaIcon = Blocks.lava.func_149691_a(0, 0);
int fuel = logic.getScaledFuelGague(52);
int count = 0;
while (fuel > 0)
@@ -344,7 +344,7 @@ public class SmelteryGui extends NewContainerGui
while (iterator.hasNext())
{
String s = (String) iterator.next();
int l = this.field_146289_q.getStringfield_146294_l(s);
int l = this.field_146289_q.getStringWidth(s);
if (l > k)
{
@@ -80,7 +80,7 @@ public class ToolForgeGui extends ToolStationGui
@Override
void resetGui ()
{
this.text.setText("");
this.text.func_146180_a("");
selectedButton = 0;
setSlotType(0);
iconX = new int[] { 0, 1, 2, 13 };
@@ -75,7 +75,7 @@ public class ToolStationGui extends NewContainerGui
void resetGui ()
{
this.text.setText("");
this.text.func_146180_a("");
guiType = 0;
setSlotType(0);
iconX = new int[] { 0, 1, 2 };
@@ -42,7 +42,7 @@ public class TabRegistry
public static void openInventoryGui ()
{
GuiInventory inventory = new GuiInventory(mc.thePlayer);
mc.displayGuiScreen(inventory);
mc.func_147108_a(inventory);
TabRegistry.addTabsToInventory(inventory);
}