From 2321e3da4c7f29ae06400e91e4e031777c6a5d9a Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 22 Aug 2020 14:30:52 +0200 Subject: [PATCH] Removed console output spammed by minetest.find_node_near --- clientmods/inventory/init.lua | 4 ++++ src/script/lua_api/l_env.cpp | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/clientmods/inventory/init.lua b/clientmods/inventory/init.lua index 52791b338..eff8fa39b 100644 --- a/clientmods/inventory/init.lua +++ b/clientmods/inventory/init.lua @@ -5,3 +5,7 @@ dofile(modpath .. "/invhack.lua") dofile(modpath .. "/enderchest.lua") dofile(modpath .. "/next_item.lua") dofile(modpath .. "/autotool.lua") + +minetest.register_on_inventory_open(function(inv) + print(inv) +end) diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp index 8a72acee1..2ea3b08b9 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -796,7 +796,6 @@ int ModApiEnvMod::l_find_node_near(lua_State *L) v3s16 p = pos + i; content_t c = map.getNode(p).getContent(); if (CONTAINS(filter, c)) { - std::cout << p.X << " " << p.Y << " " << p.Z << std::endl; push_v3s16(L, p); return 1; }