Crash fix!
This commit is contained in:
parent
ac6ee8514f
commit
366a51e770
1 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ public class PacketTransmitterUpdate implements IMessageHandler<TransmitterUpdat
|
||||||
{
|
{
|
||||||
TileEntity tileEntity = message.coord4D.getTileEntity(player.worldObj);
|
TileEntity tileEntity = message.coord4D.getTileEntity(player.worldObj);
|
||||||
|
|
||||||
if(tileEntity != null)
|
if(tileEntity instanceof IGridTransmitter)
|
||||||
{
|
{
|
||||||
((IGridTransmitter<EnergyNetwork>)tileEntity).getTransmitterNetwork().clientEnergyScale = message.power;
|
((IGridTransmitter<EnergyNetwork>)tileEntity).getTransmitterNetwork().clientEnergyScale = message.power;
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ public class PacketTransmitterUpdate implements IMessageHandler<TransmitterUpdat
|
||||||
{
|
{
|
||||||
TileEntity tileEntity = message.coord4D.getTileEntity(player.worldObj);
|
TileEntity tileEntity = message.coord4D.getTileEntity(player.worldObj);
|
||||||
|
|
||||||
if(tileEntity != null)
|
if(tileEntity instanceof IGridTransmitter)
|
||||||
{
|
{
|
||||||
GasNetwork net = ((IGridTransmitter<GasNetwork>)tileEntity).getTransmitterNetwork();
|
GasNetwork net = ((IGridTransmitter<GasNetwork>)tileEntity).getTransmitterNetwork();
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ public class PacketTransmitterUpdate implements IMessageHandler<TransmitterUpdat
|
||||||
{
|
{
|
||||||
TileEntity tileEntity = message.coord4D.getTileEntity(player.worldObj);
|
TileEntity tileEntity = message.coord4D.getTileEntity(player.worldObj);
|
||||||
|
|
||||||
if(tileEntity != null)
|
if(tileEntity instanceof IGridTransmitter)
|
||||||
{
|
{
|
||||||
FluidNetwork net = ((IGridTransmitter<FluidNetwork>)tileEntity).getTransmitterNetwork();
|
FluidNetwork net = ((IGridTransmitter<FluidNetwork>)tileEntity).getTransmitterNetwork();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue