mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Merge pull request #2041 from kevlahnota/newmaster2
fix ConcurrentModificationException and reloading WorldSave
This commit is contained in:
@@ -179,7 +179,7 @@ public class AiAttackController {
|
||||
|
||||
List<Player> opps = Lists.newArrayList(ai.getOpponents());
|
||||
if (forCombatDmg) {
|
||||
for (Player p : opps) {
|
||||
for (Player p : ai.getOpponents().threadSafeIterable()) {
|
||||
if (p.isMonarch() && ai.canBecomeMonarch()) {
|
||||
// just increase the odds for now instead of being fully predictable
|
||||
// as it could lead to other too complex factors giving this reasoning negative impact
|
||||
|
||||
@@ -79,6 +79,7 @@ public class WorldSave {
|
||||
System.err.println("Generating New World");
|
||||
currentSave.world.generateNew(0);
|
||||
}
|
||||
currentSave.pointOfInterestChanges.clear();
|
||||
|
||||
currentSave.onLoadList.emit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user