Hopefully solve all the rendering-based memory leaks
This commit is contained in:
parent
14c56c6041
commit
ec9d74fe1a
2 changed files with 9 additions and 7 deletions
|
@ -26,6 +26,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
public class ItemRenderingHandler implements IItemRenderer
|
||||
{
|
||||
public ModelRobit robit = new ModelRobit();
|
||||
public ModelChest electricChest = new ModelChest();
|
||||
|
||||
@Override
|
||||
public boolean handleRenderType(ItemStack item, ItemRenderType type)
|
||||
|
@ -57,7 +58,6 @@ public class ItemRenderingHandler implements IItemRenderer
|
|||
else if(item.getItem() instanceof ItemBlockMachine && item.getItemDamage() == MachineType.ELECTRIC_CHEST.meta)
|
||||
{
|
||||
IElectricChest chest = (IElectricChest)item.getItem();
|
||||
ModelChest electricChest = new ModelChest();
|
||||
|
||||
GL11.glRotatef(90F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
|
||||
|
|
|
@ -141,6 +141,13 @@ public class ModelBioGenerator extends ModelBase
|
|||
PISTON_BODY.setTextureSize(128, 128);
|
||||
PISTON_BODY.mirror = true;
|
||||
setRotation(PISTON_BODY, 0F, 0F, 0F);
|
||||
PISTON_HEAD_MOVES = new ModelRenderer(this, 8, 50);
|
||||
PISTON_HEAD_MOVES.addBox(0F, 0F, 0F, 4, 2, 4);
|
||||
PISTON_HEAD_MOVES.setRotationPoint(-2F, 13F, -7F);
|
||||
PISTON_HEAD_MOVES.setTextureSize(128, 128);
|
||||
PISTON_HEAD_MOVES.mirror = true;
|
||||
setRotation(PISTON_HEAD_MOVES, 0F, 0F, 0F);
|
||||
|
||||
}
|
||||
|
||||
public void render(float size, float depth)
|
||||
|
@ -162,12 +169,7 @@ public class ModelBioGenerator extends ModelBase
|
|||
FUEL_OUTLET_2.render(size);
|
||||
PLUG_PANEL.render(size);
|
||||
|
||||
PISTON_HEAD_MOVES = new ModelRenderer(this, 8, 50);
|
||||
PISTON_HEAD_MOVES.addBox(0F, depth, 0F, 4, 2, 4);
|
||||
PISTON_HEAD_MOVES.setRotationPoint(-2F, 13F, -7F);
|
||||
PISTON_HEAD_MOVES.setTextureSize(128, 128);
|
||||
PISTON_HEAD_MOVES.mirror = true;
|
||||
setRotation(PISTON_HEAD_MOVES, 0F, 0F, 0F);
|
||||
PISTON_HEAD_MOVES.setRotationPoint(-2F, 13F+depth, -7F);
|
||||
|
||||
PISTON_HEAD_MOVES.render(size);
|
||||
PISTON_ARM_MOVES.render(size);
|
||||
|
|
Loading…
Reference in a new issue