From 3016c6d076e0be1ba8b2288184659cf00bd08972 Mon Sep 17 00:00:00 2001 From: GreenBlob Date: Fri, 8 Dec 2023 00:42:25 +0800 Subject: [PATCH] Add ctf_map:ignore to if --- mods/ctf/ctf_map/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ctf/ctf_map/init.lua b/mods/ctf/ctf_map/init.lua index 1b2cb08388..b962ff3fcf 100644 --- a/mods/ctf/ctf_map/init.lua +++ b/mods/ctf/ctf_map/init.lua @@ -204,7 +204,8 @@ minetest.register_chatcommand("place_barrier", { or z == pos1.z or z == pos2.z then local current_node = minetest.get_node_or_nil(current_pos) if current_node then - if current_node.name == "air" then + if current_node.name == "air" or + current_node.name == "ctf_map:ignore" then minetest.set_node(current_pos, {name = "ctf_map:ind_glass"}) else minetest.set_node(current_pos, {name = "ctf_map:stone"})