Solved notification concurrency exception

This commit is contained in:
Yair Morgenstern 2018-12-26 20:08:57 +02:00
parent 81b2eabe92
commit aca089fa4a

View File

@ -18,7 +18,7 @@ class NotificationsScroll(internal val worldScreen: WorldScreen) : ScrollPane(nu
internal fun update(notifications: MutableList<Notification>) {
notificationsTable.clearChildren()
for (notification in notifications) {
for (notification in notifications.toList()) { // tolist to avoid concurrecy problems
val label = Label(notification.text.tr(), CameraStageBaseScreen.skin).setFontColor(Color.BLACK)
.setFontSize(14)
val minitable = Table()