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/cpp_api/s_env.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/script/cpp_api/s_env.cpp') diff --git a/src/script/cpp_api/s_env.cpp b/src/script/cpp_api/s_env.cpp index af68f689f..55c0a84f5 100644 --- a/src/script/cpp_api/s_env.cpp +++ b/src/script/cpp_api/s_env.cpp @@ -274,7 +274,6 @@ void ScriptApiEnv::on_liquid_transformed( // Convert the list to a pos array and a node array for lua int index = 1; - const NodeDefManager *ndef = getEnv()->getGameDef()->ndef(); lua_createtable(L, list.size(), 0); lua_createtable(L, list.size(), 0); for(std::pair p : list) { @@ -282,7 +281,7 @@ void ScriptApiEnv::on_liquid_transformed( push_v3s16(L, p.first); lua_rawset(L, -4); lua_pushnumber(L, index++); - pushnode(L, p.second, ndef); + pushnode(L, p.second); lua_rawset(L, -3); } -- cgit v1.2.3