Power crash fix

This commit is contained in:
Anuken
2018-09-20 08:33:57 -04:00
parent 3a785c166e
commit 50ae15aa4f

View File

@@ -162,7 +162,7 @@ public class Block extends BaseBlock {
for(int i = 0; i < tile.entity.power.links.size; i++){
Tile link = world.tile(tile.entity.power.links.get(i));
if(link != null) out.add(link);
if(link != null && link.entity != null && link.entity.power != null) out.add(link);
}
return out;
}