mirror of
https://github.com/lune-org/lune.git
synced 2024-12-13 13:30:38 +00:00
Always use luau numbers, not lua integers for translation layer
This commit is contained in:
parent
078c08eabf
commit
7261ca90ef
1 changed files with 2 additions and 2 deletions
|
@ -156,8 +156,8 @@ impl<'lua> FromRbxVariantLua<'lua> for LuaValue<'lua> {
|
||||||
match variant {
|
match variant {
|
||||||
// Primitives
|
// Primitives
|
||||||
Rbx::Bool(b) => Ok(LuaValue::Boolean(*b)),
|
Rbx::Bool(b) => Ok(LuaValue::Boolean(*b)),
|
||||||
Rbx::Int64(i) => Ok(LuaValue::Integer(*i as i32)),
|
Rbx::Int64(i) => Ok(LuaValue::Number(*i as f64)),
|
||||||
Rbx::Int32(i) => Ok(LuaValue::Integer(*i)),
|
Rbx::Int32(i) => Ok(LuaValue::Number(*i as f64)),
|
||||||
Rbx::Float64(n) => Ok(LuaValue::Number(*n)),
|
Rbx::Float64(n) => Ok(LuaValue::Number(*n)),
|
||||||
Rbx::Float32(n) => Ok(LuaValue::Number(*n as f64)),
|
Rbx::Float32(n) => Ok(LuaValue::Number(*n as f64)),
|
||||||
Rbx::String(s) => Ok(LuaValue::String(
|
Rbx::String(s) => Ok(LuaValue::String(
|
||||||
|
|
Loading…
Reference in a new issue