add missing nullcheck

This commit is contained in:
Adrian Siekierka 2014-11-12 15:16:32 +01:00
parent 02839ee47a
commit 1812bb71e4

View file

@ -165,7 +165,7 @@ public class PipeTransportPower extends PipeTransport {
init();
for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
if (tiles[side.ordinal()].isInvalid()) {
if (tiles[side.ordinal()] != null && tiles[side.ordinal()].isInvalid()) {
updateTile(side);
}
}