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_client.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/script/cpp_api/s_client.cpp') diff --git a/src/script/cpp_api/s_client.cpp b/src/script/cpp_api/s_client.cpp index b02a0c7be..b937c9f7b 100644 --- a/src/script/cpp_api/s_client.cpp +++ b/src/script/cpp_api/s_client.cpp @@ -186,15 +186,13 @@ bool ScriptApiClient::on_dignode(v3s16 p, MapNode node) { SCRIPTAPI_PRECHECKHEADER - const NodeDefManager *ndef = getClient()->ndef(); - // Get core.registered_on_dignode lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_dignode"); // Push data push_v3s16(L, p); - pushnode(L, node, ndef); + pushnode(L, node); // Call functions try { @@ -210,15 +208,13 @@ bool ScriptApiClient::on_punchnode(v3s16 p, MapNode node) { SCRIPTAPI_PRECHECKHEADER - const NodeDefManager *ndef = getClient()->ndef(); - // Get core.registered_on_punchgnode lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_punchnode"); // Push data push_v3s16(L, p); - pushnode(L, node, ndef); + pushnode(L, node); // Call functions try { -- cgit v1.2.3