This commit is contained in:
Anuken
2021-08-18 13:49:59 -04:00
parent 1bf173b1ee
commit 103ee371bd
2 changed files with 9 additions and 4 deletions

View File

@@ -23,11 +23,9 @@ import mindustry.world.modules.*;
import static mindustry.Vars.*;
public class PowerNode extends PowerBlock{
protected static boolean returnValue = false;
protected static BuildPlan otherReq;
protected final static ObjectSet<PowerGraph> graphs = new ObjectSet<>();
protected static int returnInt = 0;
protected final static ObjectSet<PowerGraph> graphs = new ObjectSet<>();
public @Load("laser") TextureRegion laser;
public @Load("laser-end") TextureRegion laserEnd;
@@ -133,6 +131,13 @@ public class PowerNode extends PowerBlock{
stats.add(Stat.powerConnections, maxNodes, StatUnit.none);
}
@Override
public void init(){
super.init();
clipSize = Math.max(clipSize, laserRange * tilesize);
}
@Override
public void drawPlace(int x, int y, int rotation, boolean valid){
Tile tile = world.tile(x, y);