Fixed #7292
This commit is contained in:
@@ -152,6 +152,13 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
return self();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(){
|
||||
if(power != null){
|
||||
power.graph.checkAdd();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Replace
|
||||
public int tileX(){
|
||||
|
||||
@@ -38,7 +38,7 @@ abstract class PayloadComp implements Posc, Rotc, Hitboxc, Unitc{
|
||||
//update power graph first, resolve everything
|
||||
for(Payload pay : payloads){
|
||||
if(pay instanceof BuildPayload pb && pb.build.power != null){
|
||||
if(payloadPower == null) payloadPower = new PowerGraph();
|
||||
if(payloadPower == null) payloadPower = new PowerGraph(false);
|
||||
|
||||
//pb.build.team = team;
|
||||
pb.build.power.graph = null;
|
||||
|
||||
Reference in New Issue
Block a user