mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
Fix tab position when effects are being displayed.
This commit is contained in:
1 parent
774239bc48
commit
c587a827c8
1 file changed
+4
@@ -35,6 +35,10 @@ public class TabRegistry
|
||||
int ySize = 166;
|
||||
int guiLeft = (event.gui.width - xSize) / 2;
|
||||
int guiTop = (event.gui.height - ySize) / 2;
|
||||
if (!mc.thePlayer.getActivePotionEffects().isEmpty())
|
||||
{
|
||||
guiLeft += 60;
|
||||
}
|
||||
|
||||
updateTabValues(guiLeft, guiTop, InventoryTabVanilla.class);
|
||||
addTabsToList(event.gui.buttonList);
|
||||
|
||||
Reference in new issue
Block a user