Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void preRender(GuiContainer cont, int mousex, int mousey) {
- checkForGuiChanges(cont, mousex, mousey);
- int guiWidth = ((IGuiContainer) cont).getXSize();
- int newLeft = xPos / 2 - guiWidth / 2;
- if (!mc.thePlayer.getActivePotionEffects().isEmpty()) {
- newLeft += 50;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement