mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
refactor: LuaState replaced with lua_engine
This commit is contained in:
parent
0647bc6f90
commit
90bc86408b
22 changed files with 643 additions and 675 deletions
|
|
@ -69,7 +69,7 @@ static int l_player_set_rot(lua_State* L) {
|
|||
lua_Number x = lua::tonumber(L, 2);
|
||||
lua_Number y = lua::tonumber(L, 3);
|
||||
lua_Number z = cam.z;
|
||||
if (lua_isnumber(L, 4)) {
|
||||
if (lua::isnumber(L, 4)) {
|
||||
z = lua::tonumber(L, 4);
|
||||
}
|
||||
cam.x = x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue