Skip to content

Commit

Permalink
Fix tab position when effects are being displayed.
Browse files Browse the repository at this point in the history
  • Loading branch information
micdoodle8 committed Mar 27, 2015
1 parent 774239b commit c587a82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/tconstruct/client/tabs/TabRegistry.java
Expand Up @@ -35,6 +35,10 @@ public void guiPostInit (GuiScreenEvent.InitGuiEvent.Post event)
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);
Expand Down

0 comments on commit c587a82

Please sign in to comment.