mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
TabRegistry - fix issues on returning to main inventory tab from another 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 https://github.com/micdoodle8/Galacticraft/issues/782 I hope you already knew we are making use of your TabRegistry code for Galacticraft's inventory tab as well - for compatibility reasons :)
This commit is contained in:
1 parent
f5179c1af6
commit
160a4ecfac
1 file changed
+1
@@ -40,6 +40,7 @@ public class TabRegistry
|
||||
|
||||
public static void openInventoryGui ()
|
||||
{
|
||||
mc.thePlayer.closeScreen();
|
||||
GuiInventory inventory = new GuiInventory(mc.thePlayer);
|
||||
mc.displayGuiScreen(inventory);
|
||||
TabRegistry.addTabsToInventory(inventory);
|
||||
|
||||
Reference in new issue
Block a user