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:
parent
c1e732448c
commit
a23701b5e6
9 changed files with 107 additions and 101 deletions
|
@ -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"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue