Allow for dynamic laser absorption and insulation (#5047)
* Allow for dynamic laser absorption * Might as well do insulated as well * null checks are important
This commit is contained in:
@@ -348,7 +348,7 @@ public class PowerNode extends PowerBlock{
|
||||
public static boolean insulated(int x, int y, int x2, int y2){
|
||||
return world.raycast(x, y, x2, y2, (wx, wy) -> {
|
||||
Building tile = world.build(wx, wy);
|
||||
return tile != null && tile.block.insulated;
|
||||
return tile != null && tile.isInsulated();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user