Skip to content

Commit

Permalink
DevTest: No use privatizer on chest of everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuzzy2 authored and sfan5 committed Oct 23, 2022
1 parent 998e507 commit 72b83ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion games/devtest/mods/testtools/privatizer.lua
Expand Up @@ -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
Expand Down

0 comments on commit 72b83ac

Please sign in to comment.