mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 22:07:59 +01:00
Fix guiskins constantly updating
This commit is contained in:
parent
f1048026b3
commit
48fce4e3b1
2 changed files with 8 additions and 6 deletions
|
@ -161,9 +161,11 @@ public class MineLittlePony implements InitCompleteListener {
|
||||||
// ponyManager.initmodels();
|
// ponyManager.initmodels();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if (!inGame && minecraft.currentScreen != null
|
boolean pressed = minecraft.currentScreen instanceof GuiMainMenu
|
||||||
&& (minecraft.currentScreen instanceof GuiMainMenu && Keyboard.isKeyDown(skinKeybinding.getKeyCode())
|
&& Keyboard.isKeyDown(skinKeybinding.getKeyCode());
|
||||||
|| minecraft.currentScreen instanceof GuiSkins)) {
|
boolean skins = minecraft.currentScreen instanceof GuiSkins
|
||||||
|
&& !(minecraft.currentScreen instanceof GuiSkinsMineLP);
|
||||||
|
if (pressed || skins) {
|
||||||
minecraft.displayGuiScreen(new GuiSkinsMineLP());
|
minecraft.displayGuiScreen(new GuiSkinsMineLP());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,8 +121,8 @@ public class GuiSkins extends GuiScreen implements IUploadCompleteCallback, IOpe
|
||||||
Minecraft minecraft = Minecraft.getMinecraft();
|
Minecraft minecraft = Minecraft.getMinecraft();
|
||||||
this.screenTitle = manager;
|
this.screenTitle = manager;
|
||||||
GameProfile profile = minecraft.getSession().getProfile();
|
GameProfile profile = minecraft.getSession().getProfile();
|
||||||
this.localPlayer = new EntityPlayerModel(profile);
|
this.localPlayer = getModel(profile);
|
||||||
this.remotePlayer = new EntityPlayerModel(profile);
|
this.remotePlayer = getModel(profile);
|
||||||
RenderManager rm = Minecraft.getMinecraft().getRenderManager();
|
RenderManager rm = Minecraft.getMinecraft().getRenderManager();
|
||||||
rm.renderEngine = minecraft.getTextureManager();
|
rm.renderEngine = minecraft.getTextureManager();
|
||||||
rm.options = minecraft.gameSettings;
|
rm.options = minecraft.gameSettings;
|
||||||
|
|
Loading…
Reference in a new issue