diff --git a/mods/ITEMS/mcl_signs/mod.conf b/mods/ITEMS/mcl_signs/mod.conf index ada0ae58ac..e2fe9d40af 100644 --- a/mods/ITEMS/mcl_signs/mod.conf +++ b/mods/ITEMS/mcl_signs/mod.conf @@ -1,4 +1,4 @@ name = mcl_signs description = New and Improved signs - can be colored and made to glow. -depends = mcl_core, mcl_sounds, mcl_dye, mcl_colors +depends = mcl_core, mcl_sounds, mcl_dye, mcl_colors, mcl_util optional_depends = doc diff --git a/mods/ITEMS/mcl_signs/signs_api.lua b/mods/ITEMS/mcl_signs/signs_api.lua index 3d8bd3e496..7ada6a6468 100644 --- a/mods/ITEMS/mcl_signs/signs_api.lua +++ b/mods/ITEMS/mcl_signs/signs_api.lua @@ -307,7 +307,9 @@ mcl_signs.wall_standard = { local item = clicker:get_wielded_item() local iname = item:get_name() - if node then + local protected = mcl_util.check_position_protection(pos, clicker) + + if node and not protected then if DEBUG then minetest.log("verbose", "[mcl_signs] Wall_Sign Right Click event on valid node.") end @@ -414,7 +416,9 @@ mcl_signs.standing_standard = { local item = clicker:get_wielded_item() local iname = item:get_name() - if node then + local protected = mcl_util.check_position_protection(pos, clicker) + + if node and not protected then -- handle glow from glow_ink_sac *first* if DEBUG then minetest.log("verbose", "[mcl_signs] Standing_Sign Right Click event on valid node.")