Update dynamicValues.lua
Small fix-fix
This commit is contained in:
@@ -135,7 +135,10 @@ local function dynamicValue(object, name, dynamicString, basalt)
|
|||||||
return {
|
return {
|
||||||
get = function(self)
|
get = function(self)
|
||||||
if(needsUpdate)then
|
if(needsUpdate)then
|
||||||
cachedValue = math.floor(calculate() + 0.5)
|
cachedValue = calculate() + 0.5
|
||||||
|
if(type(cachedValue)=="number")then
|
||||||
|
cachedValue = math.floor(cachedValue + 0.5)
|
||||||
|
end
|
||||||
needsUpdate = false
|
needsUpdate = false
|
||||||
object:updatePropertyObservers(name)
|
object:updatePropertyObservers(name)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user