Open jbromberg opened 2 months ago
Lua does not have Integer, it only has number which is similar to float https://www.lua.org/pil/2.3.html
Godot supports integers though. This is what I'm currently doing in my project but it's a bit hacky:
if value is float and fmod(value, 1) == 0:
value = int(value)
Describe the bug When pushing an integer value to lua, it is always pulled back as a float.
To Reproduce Steps to reproduce the behavior:
Expected behavior The value should be of variant type integer.