Fix ConcurrentModificationException when merging two power networks
This commit is contained in:
parent
55c7f68d75
commit
a19f115925
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ public class TRPowerNet
|
||||||
CableMultipart wire = n.cables.get(i);
|
CableMultipart wire = n.cables.get(i);
|
||||||
li.add(wire);
|
li.add(wire);
|
||||||
}
|
}
|
||||||
for (EnergyHandler ei : endpoints)
|
for (EnergyHandler ei : n.endpoints)
|
||||||
{
|
{
|
||||||
endpoints.add(ei);
|
endpoints.add(ei);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue