mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
Fix them tabs!
This commit is contained in:
1 parent
63b740eacd
commit
625f42f05c
4 files changed
+7
-5
No files matched your search
@@ -48,7 +48,7 @@ public class ArmorExtendedGui extends InventoryEffectRenderer
|
||||
// tab.enabled = false;
|
||||
// this.buttonList.add(tab);
|
||||
|
||||
TabRegistry.updateTabValues(cornerX + 51, cornerY, InventoryTabArmorExtended.class);
|
||||
TabRegistry.updateTabValues(cornerX, cornerY, InventoryTabArmorExtended.class);
|
||||
TabRegistry.addTabsToList(this.buttonList);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
@@ -12,7 +13,7 @@ import tconstruct.client.tabs.TabRegistry;
|
||||
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;
|
||||
@@ -33,7 +34,7 @@ public class KnapsackGui extends GuiContainer
|
||||
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
|
||||
|
||||
@@ -27,7 +27,7 @@ public class TabRegistry
|
||||
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user