bug: CollectionSettings do not trigger a value listener
5HT2 opened this issue · 3 comments
5HT2 commented
Code example:
visibleList.listeners.add {
MessageSendHelper.sendRawChatMessage(visibleList.value.toString())
mc.renderGlobal.loadRenderers()
}
This code is never triggered when calling visibleList.add()
, or something similar.
You also cannot do visibleList.value = someNewList
due to value
being a val
.
5HT2 commented
Here (
) is the gremlin responsible. It assumes you're always setting the value by doingsetting.value = something
, which clearly isn't the case for a Collection5HT2 commented
Theoretically the valueListeners should also work for this as well, when this is fixed