Bug: Threadsafety

This commit is contained in:
ngb
2022-07-21 21:01:33 +02:00
parent fddd8d621b
commit 917eb805c6

View File

@@ -48,7 +48,7 @@ public class DrawableLayer extends Layer {
}
synchronized( drawables ) {
List<Drawable> it = Collections.unmodifiableList(drawables);
List<Drawable> it = List.copyOf(drawables);
for( Drawable d : it ) {
if( d.isVisible() ) {
d.draw(drawing);