Power crash fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user