Remove some debug code that caused a memory leak.

Also prevent the leak from happening in the future.
This commit is contained in:
Matthew Messinger 2016-01-27 23:26:12 -05:00
parent e8f1a68fa3
commit 429266b971
2 changed files with 2 additions and 3 deletions

View file

@ -101,9 +101,7 @@ public class MineLittlePony {
minecraft.displayGuiScreen(new GuiSkinsMineLP(ponyManager));
}
HDSkinManager.INSTANCE.setEnabled(config.hd);
if (Keyboard.isKeyDown(Keyboard.KEY_O)) {
PMAPI.init();
}
}
public static MineLittlePony getInstance() {

View file

@ -50,6 +50,7 @@ public abstract class AbstractPonyModel extends ModelPlayer {
}
public final void init(float yOffset, float stretch) {
this.boxList.clear();
this.initTextures();
this.initPositions(yOffset, stretch);
for (IPonyPart part : modelParts) {