Update dynamicValues.lua

This commit is contained in:
Robert Jelic
2023-06-15 20:24:18 +02:00
committed by GitHub
parent f16e172fb1
commit c583eb666d

View File

@@ -135,7 +135,7 @@ local function dynamicValue(object, name, dynamicString, basalt)
return {
get = function(self)
if(needsUpdate)then
cachedValue = calculate()
cachedValue = math.floor(calculate() + 0.5)
needsUpdate = false
object:updatePropertyObservers(name)
end