We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7b9b16 commit bc4041aCopy full SHA for bc4041a
crates/languages/bevy_mod_scripting_lua/src/bindings/script_value.rs
@@ -41,7 +41,10 @@ impl FromLua for LuaScriptValue {
41
Value::Nil => ScriptValue::Unit,
42
Value::Boolean(b) => ScriptValue::Bool(b),
43
// Value::LightUserData(light_user_data) => todo!(),
44
+ #[cfg(not(feature = "luau"))]
45
Value::Integer(i) => ScriptValue::Integer(i),
46
+ #[cfg(feature = "luau")]
47
+ Value::Integer(i) => ScriptValue::Integer(i as i64),
48
Value::Number(n) => ScriptValue::Float(n),
49
Value::String(s) => ScriptValue::String(s.to_str()?.to_owned().into()),
50
Value::Table(table) => {
0 commit comments