Make sure dying sign text respects protection

This commit is contained in:
PrairieWind 2023-05-12 17:07:25 -06:00 committed by ancientmarinerdev
parent 4651bd7e7d
commit a5a035d9bb
2 changed files with 7 additions and 3 deletions

@ -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

@ -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.")