mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Fixed Diversion Transporter not rendering unlit redstone torch, forced Diversion Transporter to render center
This commit is contained in:
1 parent
f0dd207c79
commit
b657c0fb55
4 files changed
+27
-13
No files matched your search
@@ -14,7 +14,6 @@ import mekanism.common.multipart.PartMechanicalPipe;
|
||||
import mekanism.common.multipart.PartPressurizedTube;
|
||||
import mekanism.common.multipart.PartSidedPipe;
|
||||
import mekanism.common.multipart.PartSidedPipe.ConnectionType;
|
||||
import mekanism.common.multipart.PartTransmitter;
|
||||
import mekanism.common.multipart.PartUniversalCable;
|
||||
import mekanism.common.multipart.TransmitterType;
|
||||
import mekanism.common.multipart.TransmitterType.Size;
|
||||
@@ -630,7 +629,7 @@ public class RenderPartTransmitter implements IIconSelfRegister
|
||||
icon = Blocks.redstone_torch.getIcon(0, 0);
|
||||
break;
|
||||
case 2:
|
||||
icon = Blocks.redstone_torch.getIcon(0, 0);
|
||||
icon = Blocks.unlit_redstone_torch.getIcon(0, 0);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,12 @@ public class PartDiversionTransporter extends PartLogisticalTransporter
|
||||
{
|
||||
return transporterIcons.getCenterIcon(2);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderCenter()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void load(NBTTagCompound nbtTags)
|
||||
|
||||
@@ -681,12 +681,6 @@ public class PartLogisticalTransporter extends PartTransmitter<InventoryNetwork>
|
||||
color = c;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity getTile()
|
||||
{
|
||||
return tile();
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumColor getRenderColor()
|
||||
{
|
||||
|
||||
@@ -158,6 +158,11 @@ public abstract class PartSidedPipe extends TMultiPart implements TSlottedPart,
|
||||
sendDesc = false;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean renderCenter()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public IIcon getIconForSide(ForgeDirection side)
|
||||
{
|
||||
@@ -165,16 +170,26 @@ public abstract class PartSidedPipe extends TMultiPart implements TSlottedPart,
|
||||
|
||||
if(type == ConnectionType.NONE)
|
||||
{
|
||||
if(client.oldTransmitterRender)
|
||||
if(client.oldTransmitterRender || renderCenter())
|
||||
{
|
||||
return getCenterIcon();
|
||||
if(getAllCurrentConnections() == 3 && side != ForgeDirection.DOWN && side != ForgeDirection.UP)
|
||||
}
|
||||
else if(getAllCurrentConnections() == 3 && side != ForgeDirection.DOWN && side != ForgeDirection.UP)
|
||||
{
|
||||
return getSideIcon();
|
||||
if(getAllCurrentConnections() == 12 && (side == ForgeDirection.DOWN || side == ForgeDirection.UP))
|
||||
}
|
||||
else if(getAllCurrentConnections() == 12 && (side == ForgeDirection.DOWN || side == ForgeDirection.UP))
|
||||
{
|
||||
return getSideIcon();
|
||||
if(getAllCurrentConnections() == 12 && (side == ForgeDirection.EAST || side == ForgeDirection.WEST))
|
||||
}
|
||||
else if(getAllCurrentConnections() == 12 && (side == ForgeDirection.EAST || side == ForgeDirection.WEST))
|
||||
{
|
||||
return getSideIconRotated();
|
||||
if(getAllCurrentConnections() == 48 && side != ForgeDirection.EAST && side != ForgeDirection.WEST)
|
||||
}
|
||||
else if(getAllCurrentConnections() == 48 && side != ForgeDirection.EAST && side != ForgeDirection.WEST)
|
||||
{
|
||||
return getSideIconRotated();
|
||||
}
|
||||
|
||||
return getCenterIcon();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user