Fix fancy render config not working

This commit is contained in:
Aidan C. Brady 2014-02-20 21:59:30 -05:00
parent 7c9d267499
commit 8e6fcd1b47

View file

@ -11,6 +11,7 @@ import mekanism.api.Coord4D;
import mekanism.api.energy.IStrictEnergyAcceptor; import mekanism.api.energy.IStrictEnergyAcceptor;
import mekanism.api.transmitters.IGridTransmitter; import mekanism.api.transmitters.IGridTransmitter;
import mekanism.api.transmitters.TransmissionType; import mekanism.api.transmitters.TransmissionType;
import mekanism.client.MekanismClient;
import mekanism.client.render.RenderPartTransmitter; import mekanism.client.render.RenderPartTransmitter;
import mekanism.common.EnergyNetwork; import mekanism.common.EnergyNetwork;
import mekanism.common.Mekanism; import mekanism.common.Mekanism;
@ -187,7 +188,7 @@ public class PartUniversalCable extends PartTransmitter<EnergyNetwork> implement
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public void renderDynamic(Vector3 pos, float frame, int pass) public void renderDynamic(Vector3 pos, float frame, int pass)
{ {
if(pass == 1) if(pass == 1 && MekanismClient.fancyUniversalCableRender)
{ {
RenderPartTransmitter.getInstance().renderContents(this, pos); RenderPartTransmitter.getInstance().renderContents(this, pos);
} }