This commit is contained in:
Anuken
2023-09-04 10:05:39 -04:00
parent 700dd38a36
commit 424714972c
2 changed files with 5 additions and 1 deletions

View File

@@ -190,7 +190,7 @@ public class BeamNode extends PowerBlock{
if(next != prev){
//unlinked, disconnect and reflow
if(prev != null){
if(prev != null && prev.isAdded()){
prev.power.links.removeValue(pos());
power.links.removeValue(prev.pos());

View File

@@ -377,6 +377,10 @@ public class PowerGraph{
if(entity != null) entity.remove();
}
public int getId(){
return graphID;
}
@Deprecated
private boolean otherConsumersAreValid(Building build, Consume consumePower){
if(!build.enabled) return false;