Skip to content

Commit

Permalink
Fix them tabs!
Browse files Browse the repository at this point in the history
  • Loading branch information
blue42u committed May 16, 2014
1 parent 63b740e commit 625f42f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion resources/TConstruct_at.cfg
Expand Up @@ -22,6 +22,7 @@ public net.minecraft.block.BlockRailBase$Rail func_150650_a()I
# GuiContainer
public net.minecraft.client.gui.inventory.GuiContainer field_146999_f
public net.minecraft.client.gui.inventory.GuiContainer field_147009_r
public net.minecraft.client.gui.inventory.GuiContainer field_147003_i
# GuiScreen
public net.minecraft.client.gui.GuiScreen field_146292_n #buttonList
# ThreadDownloadImageData
Expand All @@ -30,4 +31,4 @@ public net.minecraft.client.renderer.ThreadDownloadImageData field_110560_d #fie
public net.minecraft.world.gen.structure.StructureVillagePieces$Village #cant make village houses w/o this
public net.minecraft.client.renderer.Tessellator field_78415_z
public net.minecraft.client.renderer.entity.RenderPlayer field_77109_a #modelBipedMain
# needs to have a space at the end of every line or SS will derp
# needs to have a space at the end of every line or SS will derp
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/client/gui/ArmorExtendedGui.java
Expand Up @@ -48,7 +48,7 @@ public void initGui ()
// tab.enabled = false;
// this.buttonList.add(tab);

TabRegistry.updateTabValues(cornerX + 51, cornerY, InventoryTabArmorExtended.class);
TabRegistry.updateTabValues(cornerX, cornerY, InventoryTabArmorExtended.class);
TabRegistry.addTabsToList(this.buttonList);
}

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/tconstruct/client/gui/KnapsackGui.java
@@ -1,6 +1,7 @@
package tconstruct.client.gui;

import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.renderer.InventoryEffectRenderer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
Expand All @@ -12,7 +13,7 @@
import tconstruct.inventory.KnapsackContainer;
import tconstruct.util.player.KnapsackInventory;

public class KnapsackGui extends GuiContainer
public class KnapsackGui extends InventoryEffectRenderer
{
public InventoryPlayer inv;
public KnapsackInventory stats;
Expand All @@ -33,7 +34,7 @@ public void initGui ()
int cornerY = guiTop;
this.buttonList.clear();

TabRegistry.updateTabValues(cornerX + 51, cornerY, InventoryTabKnapsack.class);
TabRegistry.updateTabValues(cornerX, cornerY, InventoryTabKnapsack.class);
TabRegistry.addTabsToList(this.buttonList);

// InventoryTab tab = new InventoryTab(2, cornerX, cornerY - 28, new
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/client/tabs/TabRegistry.java
Expand Up @@ -27,7 +27,7 @@ public static void addTabsToInventory (GuiContainer gui)
if (gui.getClass() == GuiInventory.class)
{
// Values are public at runtime.
int cornerX = gui.xSize;
int cornerX = gui.guiLeft;
int cornerY = gui.guiTop;
gui.buttonList.clear();

Expand Down

0 comments on commit 625f42f

Please sign in to comment.