We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe87d3b + fa927a9 commit 902c27eCopy full SHA for 902c27e
1 file changed
ZkData/Ef/Galaxy.cs
@@ -105,9 +105,12 @@ public void ProcessProduction()
105
106
107
// planets generate metal
108
- foreach (var p in Planets.Where(x => x.Faction != null && x.Account != null))
+ foreach (var p in Planets.Where(x => x.Faction != null))
109
{
110
- p.Account.ProduceMetal(GlobalConst.PlanetMetalPerTurn);
+ if (p.Account != null)
111
+ p.Account.ProduceMetal(GlobalConst.PlanetMetalPerTurn);
112
+ else
113
+ p.Faction.ProduceMetal(GlobalConst.PlanetMetalPerTurn);
114
}
115
116
0 commit comments