From b38ffdec279bcded98e34f5116c8d676aa9f73a7 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Tue, 18 Oct 2022 18:01:44 -0400 Subject: Implement vector and node conversion in Lua (#12609) Co-authored-by: sfan5 --- src/script/lua_api/l_particles_local.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/lua_api/l_particles_local.cpp') diff --git a/src/script/lua_api/l_particles_local.cpp b/src/script/lua_api/l_particles_local.cpp index 62cbab8e9..43304b7a7 100644 --- a/src/script/lua_api/l_particles_local.cpp +++ b/src/script/lua_api/l_particles_local.cpp @@ -87,7 +87,7 @@ int ModApiParticlesLocal::l_add_particle(lua_State *L) lua_getfield(L, 1, "node"); if (lua_istable(L, -1)) - p.node = readnode(L, -1, getGameDef(L)->ndef()); + p.node = readnode(L, -1); lua_pop(L, 1); p.node_tile = getintfield_default(L, 1, "node_tile", p.node_tile); @@ -185,7 +185,7 @@ int ModApiParticlesLocal::l_add_particlespawner(lua_State *L) lua_getfield(L, 1, "node"); if (lua_istable(L, -1)) - p.node = readnode(L, -1, getGameDef(L)->ndef()); + p.node = readnode(L, -1); lua_pop(L, 1); p.node_tile = getintfield_default(L, 1, "node_tile", p.node_tile); -- cgit v1.2.3