Fix tab position when effects are being displayed.

This commit is contained in:
Mitchell Petrie committed 2015-03-27 17:12:59 -04:00
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);