Fix computed int not returning proper value clientside

This commit is contained in:
DBotThePony 2023-08-10 17:30:21 +07:00
parent 62fdff4a34
commit abe82d456c
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -1309,6 +1309,8 @@ class FieldSynchronizer(private val callback: Runnable, private val alwaysCallCa
private var isRemoteSet = false private var isRemoteSet = false
protected var clientValue: Int = 0 protected var clientValue: Int = 0
set(value) { set(value) {
isClientValue = true
if (field != value) { if (field != value) {
field = value field = value
subs.accept(value) subs.accept(value)