v0.7.0: made painter code more resilient to the room list changing
This commit is contained in:
parent
3c02c6d95f
commit
2af7f9a3a2
|
@ -109,7 +109,7 @@ public abstract class RegularPainter extends Painter {
|
|||
|
||||
Random.shuffle(rooms);
|
||||
|
||||
for (Room r : rooms) {
|
||||
for (Room r : rooms.toArray(new Room[0])) {
|
||||
placeDoors( r );
|
||||
r.paint( level );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user