diff options
Diffstat (limited to 'src/script/cpp_api/s_env.cpp')
-rw-r--r-- | src/script/cpp_api/s_env.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<v3s16, MapNode> 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); } |