Power graph removal

This commit is contained in:
Anuken
2018-09-18 17:04:43 -04:00
parent 8c7258e839
commit 33418397f8
3 changed files with 8 additions and 1 deletions
@@ -157,6 +157,9 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{
}
public void removeFromProximity(){
if(power != null){
tile.block().powerGraphRemoved(tile);
}
GridPoint2[] nearby = Edges.getEdges(tile.block().size);
for(GridPoint2 point : nearby){
Tile other = world.tile(tile.x + point.x, tile.y + point.y);