Original setter for player.spectator was using lua_toboolean, which allows conversion from any other type (such as numbers). Meanwhile setter in Saturn was using luaL_checkboolean, which throws an error when argument is not boolean. Weird that some parts of code use checkboolean, and some toboolean, but oh well
Original setter for
player.spectator
was usinglua_toboolean
, which allows conversion from any other type (such as numbers). Meanwhile setter in Saturn was usingluaL_checkboolean
, which throws an error when argument is not boolean. Weird that some parts of code use checkboolean, and some toboolean, but oh well