Fixed #11207
This commit is contained in:
@@ -2650,6 +2650,7 @@ public class Blocks{
|
|||||||
size = 3;
|
size = 3;
|
||||||
maxNodes = 1;
|
maxNodes = 1;
|
||||||
laserRange = 500f;
|
laserRange = 500f;
|
||||||
|
powerLayer = Layer.legUnit + 2f;
|
||||||
autolink = false;
|
autolink = false;
|
||||||
sameBlockConnection = true;
|
sameBlockConnection = true;
|
||||||
laserColor2 = Color.valueOf("ffd9c2");
|
laserColor2 = Color.valueOf("ffd9c2");
|
||||||
|
|||||||
@@ -476,7 +476,9 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||||||
|
|
||||||
@Remote(variants = Variant.one)
|
@Remote(variants = Variant.one)
|
||||||
public static void removeQueueBlock(int x, int y, boolean breaking){
|
public static void removeQueueBlock(int x, int y, boolean breaking){
|
||||||
player.unit().removeBuild(x, y, breaking);
|
if(!player.dead()){
|
||||||
|
player.unit().removeBuild(x, y, breaking);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Remote(targets = Loc.both, called = Loc.server)
|
@Remote(targets = Loc.both, called = Loc.server)
|
||||||
|
|||||||
@@ -466,8 +466,6 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Sector hoverOrSelect = hovered != null ? hovered : selected;
|
|
||||||
|
|
||||||
Sector current = Vars.state.getSector() != null && Vars.state.getSector().isBeingPlayed() && Vars.state.getSector().planet == state.planet ? Vars.state.getSector() : null;
|
Sector current = Vars.state.getSector() != null && Vars.state.getSector().isBeingPlayed() && Vars.state.getSector().planet == state.planet ? Vars.state.getSector() : null;
|
||||||
|
|
||||||
if(current != null){
|
if(current != null){
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ public class PowerNode extends PowerBlock{
|
|||||||
public int maxNodes = 3;
|
public int maxNodes = 3;
|
||||||
public boolean autolink = true, drawRange = true, sameBlockConnection = false;
|
public boolean autolink = true, drawRange = true, sameBlockConnection = false;
|
||||||
public float laserScale = 0.25f;
|
public float laserScale = 0.25f;
|
||||||
|
public float powerLayer = Layer.power;
|
||||||
public Color laserColor1 = Color.white;
|
public Color laserColor1 = Color.white;
|
||||||
public Color laserColor2 = Pal.powerLight;
|
public Color laserColor2 = Pal.powerLight;
|
||||||
|
|
||||||
@@ -479,7 +480,7 @@ public class PowerNode extends PowerBlock{
|
|||||||
|
|
||||||
if(Mathf.zero(Renderer.laserOpacity) || isPayload() || team == Team.derelict) return;
|
if(Mathf.zero(Renderer.laserOpacity) || isPayload() || team == Team.derelict) return;
|
||||||
|
|
||||||
Draw.z(Layer.power);
|
Draw.z(powerLayer);
|
||||||
setupColor(power.graph.getSatisfaction());
|
setupColor(power.graph.getSatisfaction());
|
||||||
|
|
||||||
for(int i = 0; i < power.links.size; i++){
|
for(int i = 0; i < power.links.size; i++){
|
||||||
|
|||||||
Reference in New Issue
Block a user