mirror of
https://github.com/minetest/minetest.git
synced 2024-09-12 00:26:50 +02:00
DevTest: No use privatizer on chest of everything
This commit is contained in:
parent
998e50725c
commit
72b83acadc
@ -11,7 +11,12 @@ minetest.register_tool("testtools:privatizer", {
|
|||||||
minetest.log("action", "[testtools] Privatizer used at "..minetest.pos_to_string(p))
|
minetest.log("action", "[testtools] Privatizer used at "..minetest.pos_to_string(p))
|
||||||
minetest.get_meta(p):mark_as_private({"infotext", "formspec"})
|
minetest.get_meta(p):mark_as_private({"infotext", "formspec"})
|
||||||
if user and user:is_player() then
|
if user and user:is_player() then
|
||||||
minetest.chat_send_player(user:get_player_name(), "Chest metadata (infotext, formspec) set private!")
|
minetest.chat_send_player(user:get_player_name(), "Node metadata (infotext, formspec) set private!")
|
||||||
|
end
|
||||||
|
return
|
||||||
|
elseif node.name == "chest_of_everything:chest" then
|
||||||
|
if user and user:is_player() then
|
||||||
|
minetest.chat_send_player(user:get_player_name(), "Privatizer can't be used on the Chest of Everything. Use it on a normal chest.")
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user