Skip to content

Commit

Permalink
Add ctf_map:ignore to if
Browse files Browse the repository at this point in the history
  • Loading branch information
a-blob committed Dec 7, 2023
1 parent eb18c7c commit 3016c6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mods/ctf/ctf_map/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down

0 comments on commit 3016c6d

Please sign in to comment.