1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-31 18:31:04 +00:00

DevTest: Move detached inv tests to chest mod

This commit is contained in:
Wuzzy 2022-10-08 19:49:28 +02:00 committed by sfan5
parent c1e732448c
commit a23701b5e6
9 changed files with 107 additions and 101 deletions

View file

@ -6,7 +6,7 @@ minetest.register_tool("testtools:privatizer", {
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type == "node" then
local node = minetest.get_node(pointed_thing.under)
if node.name == "chest:chest" then
if minetest.get_item_group(node.name, "meta_is_privatizable") == 1 then
local p = pointed_thing.under
minetest.log("action", "[testtools] Privatizer used at "..minetest.pos_to_string(p))
minetest.get_meta(p):mark_as_private({"infotext", "formspec"})