mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 12:37:59 +01:00
Fixed GLContext is not defined.
This commit is contained in:
parent
0710d51b23
commit
44e38c0329
1 changed files with 4 additions and 3 deletions
|
@ -244,14 +244,15 @@ public class GuiSkins extends GuiScreen implements FutureCallback<SkinUploadResp
|
|||
@Override
|
||||
public void onGuiClosed() {
|
||||
super.onGuiClosed();
|
||||
localPlayer.releaseTextures();
|
||||
remotePlayer.releaseTextures();
|
||||
HDSkinManager.clearSkinCache();
|
||||
|
||||
Later.performLater(1, () -> {
|
||||
if (!(Minecraft.getMinecraft().currentScreen instanceof GuiSkins)) {
|
||||
if (fileDrop != null) {
|
||||
fileDrop.setVisible(false);
|
||||
}
|
||||
GuiSkins.this.localPlayer.releaseTextures();
|
||||
GuiSkins.this.remotePlayer.releaseTextures();
|
||||
HDSkinManager.clearSkinCache();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue