fixed #9017
This commit is contained in:
@@ -190,7 +190,7 @@ public class BeamNode extends PowerBlock{
|
|||||||
|
|
||||||
if(next != prev){
|
if(next != prev){
|
||||||
//unlinked, disconnect and reflow
|
//unlinked, disconnect and reflow
|
||||||
if(prev != null){
|
if(prev != null && prev.isAdded()){
|
||||||
prev.power.links.removeValue(pos());
|
prev.power.links.removeValue(pos());
|
||||||
power.links.removeValue(prev.pos());
|
power.links.removeValue(prev.pos());
|
||||||
|
|
||||||
|
|||||||
@@ -377,6 +377,10 @@ public class PowerGraph{
|
|||||||
if(entity != null) entity.remove();
|
if(entity != null) entity.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getId(){
|
||||||
|
return graphID;
|
||||||
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
private boolean otherConsumersAreValid(Building build, Consume consumePower){
|
private boolean otherConsumersAreValid(Building build, Consume consumePower){
|
||||||
if(!build.enabled) return false;
|
if(!build.enabled) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user