mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 15:03:01 +00:00
fix all the things!
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -837,22 +837,22 @@ public class TContent implements IFuelHandler
|
||||
{
|
||||
HashMap<String, Achievement> achievements = TAchievements.achievements;
|
||||
|
||||
achievements.put("tconstruct.beginner", new Achievement("" + 2741, "tconstruct.beginner", 0, 0, TRepo.manualBook, null).setIndependent().registerAchievement());
|
||||
achievements.put("tconstruct.pattern", new Achievement("" + 2742, "tconstruct.pattern", 2, 1, TRepo.blankPattern, achievements.get("tconstruct.beginner")).registerAchievement());
|
||||
achievements.put("tconstruct.beginner", new Achievement("" + 2741, "tconstruct.beginner", 0, 0, TRepo.manualBook, null).setIndependent() );
|
||||
achievements.put("tconstruct.pattern", new Achievement("" + 2742, "tconstruct.pattern", 2, 1, TRepo.blankPattern, achievements.get("tconstruct.beginner")) );
|
||||
achievements.put("tconstruct.tinkerer",
|
||||
new Achievement("" + 2743, "tconstruct.tinkerer", 2, 2, new ItemStack(TRepo.titleIcon, 1, 4096), achievements.get("tconstruct.pattern")).registerAchievement());
|
||||
new Achievement("" + 2743, "tconstruct.tinkerer", 2, 2, new ItemStack(TRepo.titleIcon, 1, 4096), achievements.get("tconstruct.pattern")) );
|
||||
achievements.put("tconstruct.preparedFight",
|
||||
new Achievement("" + 2744, "tconstruct.preparedFight", 1, 3, new ItemStack(TRepo.titleIcon, 1, 4097), achievements.get("tconstruct.tinkerer")).registerAchievement());
|
||||
new Achievement("" + 2744, "tconstruct.preparedFight", 1, 3, new ItemStack(TRepo.titleIcon, 1, 4097), achievements.get("tconstruct.tinkerer")));
|
||||
achievements.put("tconstruct.proTinkerer", new Achievement("" + 2745, "tconstruct.proTinkerer", 4, 4, new ItemStack(TRepo.titleIcon, 1, 4098), achievements.get("tconstruct.tinkerer")).setSpecial()
|
||||
.registerAchievement());
|
||||
achievements.put("tconstruct.smelteryMaker", new Achievement("" + 2746, "tconstruct.smelteryMaker", -2, -1, TRepo.smeltery, achievements.get("tconstruct.beginner")).registerAchievement());
|
||||
);
|
||||
achievements.put("tconstruct.smelteryMaker", new Achievement("" + 2746, "tconstruct.smelteryMaker", -2, -1, TRepo.smeltery, achievements.get("tconstruct.beginner")) );
|
||||
achievements.put("tconstruct.enemySlayer",
|
||||
new Achievement("" + 2747, "tconstruct.enemySlayer", 0, 5, new ItemStack(TRepo.titleIcon, 1, 4099), achievements.get("tconstruct.preparedFight")).registerAchievement());
|
||||
new Achievement("" + 2747, "tconstruct.enemySlayer", 0, 5, new ItemStack(TRepo.titleIcon, 1, 4099), achievements.get("tconstruct.preparedFight")) );
|
||||
achievements.put("tconstruct.dualConvenience", new Achievement("" + 2748, "tconstruct.dualConvenience", 0, 7, new ItemStack(TRepo.titleIcon, 1, 4100), achievements.get("tconstruct.enemySlayer"))
|
||||
.setSpecial().registerAchievement());
|
||||
.setSpecial() );
|
||||
achievements.put("tconstruct.doingItWrong",
|
||||
new Achievement("" + 2749, "tconstruct.doingItWrong", -2, -3, new ItemStack(TRepo.manualBook, 1, 2), achievements.get("tconstruct.smelteryMaker")).registerAchievement());
|
||||
new Achievement("" + 2749, "tconstruct.doingItWrong", -2, -3, new ItemStack(TRepo.manualBook, 1, 2), achievements.get("tconstruct.smelteryMaker")) );
|
||||
achievements.put("tconstruct.betterCrafting",
|
||||
new Achievement("" + 2750, "tconstruct.betterCrafting", -2, 2, TRepo.craftingStationWood, achievements.get("tconstruct.beginner")).registerAchievement());
|
||||
new Achievement("" + 2750, "tconstruct.betterCrafting", -2, 2, TRepo.craftingStationWood, achievements.get("tconstruct.beginner")) );
|
||||
}
|
||||
}
|
||||
@@ -402,7 +402,7 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
var2 = MathHelper.floor_double(this.posY);
|
||||
int var47 = MathHelper.floor_double(this.posZ);
|
||||
|
||||
if (BlockRail.isRailBlockAt(this.worldObj, var45, var2 - 1, var47))
|
||||
if (BlockRail.func_150049_b_(this.worldObj, var45, var2 - 1, var47))
|
||||
{
|
||||
--var2;
|
||||
}
|
||||
@@ -567,7 +567,7 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
int var10 = MathHelper.floor_double(par3);
|
||||
int var11 = MathHelper.floor_double(par5);
|
||||
|
||||
if (BlockRail.isRailBlockAt(this.worldObj, var9, var10 - 1, var11))
|
||||
if (BlockRail.func_150049_b_(this.worldObj, var9, var10 - 1, var11))
|
||||
{
|
||||
--var10;
|
||||
}
|
||||
@@ -583,14 +583,14 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
int var8 = MathHelper.floor_double(par3);
|
||||
int var9 = MathHelper.floor_double(par5);
|
||||
|
||||
if (BlockRail.isRailBlockAt(this.worldObj, var7, var8 - 1, var9))
|
||||
if (BlockRail.func_150049_b_(this.worldObj, var7, var8 - 1, var9))
|
||||
{
|
||||
--var8;
|
||||
}
|
||||
|
||||
Block var10 = this.worldObj.func_147439_a(var7, var8, var9);
|
||||
|
||||
if (BlockRail.isRailBlock(var10))
|
||||
if (BlockRail.func_150051_a(var10))
|
||||
{
|
||||
int var11 = 0;
|
||||
par3 = (double) var8;
|
||||
|
||||
Reference in new issue
Block a user