diff --git a/loveframes/objects/numberbox.lua b/loveframes/objects/numberbox.lua index 878d940..c5218fc 100644 --- a/loveframes/objects/numberbox.lua +++ b/loveframes/objects/numberbox.lua @@ -335,11 +335,11 @@ function newobject:SetMax(max) if self.value > max then self.value = max - self:updateinput() if onvaluechanged then onvaluechanged(self, max) end end + self:updateinput() return self @@ -367,11 +367,11 @@ function newobject:SetMin(min) if self.value < min then self.value = min - self:updateinput() if onvaluechanged then onvaluechanged(self, min) end end + self:updateinput() return self @@ -484,6 +484,7 @@ end function newobject:SetDecimals(decimals) self.decimals = decimals + self:updateinput() return self end