]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Removed console output spammed by minetest.find_node_near
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 22 Aug 2020 12:30:52 +0000 (14:30 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 22 Aug 2020 12:30:52 +0000 (14:30 +0200)
clientmods/inventory/init.lua
src/script/lua_api/l_env.cpp

index 52791b338996ac1c2ed2158dafbc05f90b33c982..eff8fa39beb253153c50d8a6e82cfb532f34eeef 100644 (file)
@@ -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)
index 8a72acee1fa0e11cb802c302af6fc1d72ff3cdae..2ea3b08b93e3321a87451dc8655c601a6323bdb0 100644 (file)
@@ -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;
                        }