Quote:
Originally Posted by lurker_hlb3
Tried this in the group change area
but gave the following error "unexpected error: java.util.ConcurrentModificationException:null
Code:
i = mission.randomGroups.iterator ()
for group in i:
clone=group.clone()
moveGroup(clone, 100000, 100000)
i.add(clone)
|
Yes, I know. With the cloning, I hit the limit of what I can do transparently by mixing loops in Java and Python (for the group change), without complicating things further. So, the cloning is only usable from the script mode.
There may be some way around it, but I'm satisfied with the current solution, since I think anyone making complex changes should be using the script mode anyway. If yuo want to find a fix, check the source (it's in src/net/sf/shbatcheditor/editor/changes/JythonRndGroupChange.java).