mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-04-01 01:05:27 +02:00
Remove some debug code that caused a memory leak.
Also prevent the leak from happening in the future.
This commit is contained in:
parent
e8f1a68fa3
commit
429266b971
2 changed files with 2 additions and 3 deletions
|
@ -101,9 +101,7 @@ public class MineLittlePony {
|
||||||
minecraft.displayGuiScreen(new GuiSkinsMineLP(ponyManager));
|
minecraft.displayGuiScreen(new GuiSkinsMineLP(ponyManager));
|
||||||
}
|
}
|
||||||
HDSkinManager.INSTANCE.setEnabled(config.hd);
|
HDSkinManager.INSTANCE.setEnabled(config.hd);
|
||||||
if (Keyboard.isKeyDown(Keyboard.KEY_O)) {
|
|
||||||
PMAPI.init();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MineLittlePony getInstance() {
|
public static MineLittlePony getInstance() {
|
||||||
|
|
|
@ -50,6 +50,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void init(float yOffset, float stretch) {
|
public final void init(float yOffset, float stretch) {
|
||||||
|
this.boxList.clear();
|
||||||
this.initTextures();
|
this.initTextures();
|
||||||
this.initPositions(yOffset, stretch);
|
this.initPositions(yOffset, stretch);
|
||||||
for (IPonyPart part : modelParts) {
|
for (IPonyPart part : modelParts) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue