mirror of
https://github.com/minetest/minetest.git
synced 2024-08-18 20:44:16 +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.get_meta(p):mark_as_private({"infotext", "formspec"})
|
||||
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
|
||||
return
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user