Round UDim offset values (#30)

This commit is contained in:
richard 2024-08-19 06:56:00 -07:00 committed by GitHub
parent e1751fb8d0
commit 72e5fbb6fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,11 +114,11 @@ local vec6_to_type = {
end :: Vec6ToType<Color3>, end :: Vec6ToType<Color3>,
UDim = function(v) UDim = function(v)
return UDim.new(v.X, v.Y) return UDim.new(v.X, math.round(v.Y))
end :: Vec6ToType<UDim>, end :: Vec6ToType<UDim>,
UDim2 = function(a, b) UDim2 = function(a, b)
return UDim2.new(a.X, a.Y, a.Z, b.X) return UDim2.new(a.X, math.round(a.Y), a.Z, math.round(b.X))
end :: Vec6ToType<UDim2>, end :: Vec6ToType<UDim2>,
Vector2 = function(v) Vector2 = function(v)