fix LuaRandom compatibility

This commit is contained in:
Evil Factory
2022-04-09 14:35:46 -03:00
parent e1e0fd6acf
commit e1d0b8235f

View File

@@ -13,7 +13,7 @@ compatibilityLib.CreateVector4 = Vector4.__new
local luaRandom = {}
luaRandom.Range = function (min, max)
return math.random(min, max)
return math.random(min, max - 1)
end
luaRandom.RangeFloat = function (min, max)