Skip to content

Commit

Permalink
TabRegistry - fix issues on returning to main inventory tab from anot…
Browse files Browse the repository at this point in the history
…her tab

Without this change, if you open the player's inventory, click to the Tinker's Construct inventory tab, then click _back_ to the vanilla inventory tab, any changes then made to the player inventory (e.g. crafting, or moving an item from a slot to a different slot) do not register on the server.

For further info please see the issue reported here micdoodle8/Galacticraft#782
I hope you already knew we are making use of your TabRegistry code for Galacticraft's inventory tab as well - for compatibility reasons :)
  • Loading branch information
radfast committed Aug 6, 2014
1 parent f5179c1 commit 160a4ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/tconstruct/client/tabs/TabRegistry.java
Expand Up @@ -40,6 +40,7 @@ public static void addTabsToInventory (GuiContainer gui)

public static void openInventoryGui ()
{
mc.thePlayer.closeScreen();
GuiInventory inventory = new GuiInventory(mc.thePlayer);
mc.displayGuiScreen(inventory);
TabRegistry.addTabsToInventory(inventory);
Expand Down

0 comments on commit 160a4ec

Please sign in to comment.