Fixed an NPE when a power pipe tries to give power to a ghost pipe.
This has been bugging me a long time, but since the old svn is gone I don't know what change caused it (it's not happening in 3.1.5). It may not be the best approach but it prevents mc from crashing.
This commit is contained in:
parent
610be32388
commit
c3dc022880
1 changed files with 3 additions and 0 deletions
|
@ -141,6 +141,9 @@ public class PipeTransportPower extends PipeTransport {
|
|||
if (entity instanceof TileGenericPipe) {
|
||||
TileGenericPipe nearbyTile = (TileGenericPipe) entity;
|
||||
|
||||
if (nearbyTile.pipe == null)
|
||||
continue;
|
||||
|
||||
PipeTransportPower nearbyTransport = (PipeTransportPower) nearbyTile.pipe.transport;
|
||||
|
||||
nearbyTransport.requestEnergy(Orientations.values()[i].reverse(), transferQuery[i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue