Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public void preRender(GuiContainer cont, int mousex, int mousey) {
  2.  
  3. checkForGuiChanges(cont, mousex, mousey);
  4. int guiWidth = ((IGuiContainer) cont).getXSize();
  5. int newLeft = xPos / 2 - guiWidth / 2;
  6. if (!mc.thePlayer.getActivePotionEffects().isEmpty()) {
  7. newLeft += 50;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement