don't try to run the glow code if the sign's being punched by a machine

that doesn't use a fake player object e.g. basic_machines
This commit is contained in:
Vanessa Dannenberg 2021-05-29 07:58:01 -04:00
parent 8b6f5e23a6
commit 02c19e89d9
1 changed files with 3 additions and 1 deletions

View File

@ -942,7 +942,9 @@ function signs_lib.register_fence_with_sign()
end
local use_glow = function(pos, node, puncher, pointed_thing)
signs_lib.glow(pos, node, puncher)
if puncher then -- if e.g. a machine tries to punch; only a real person should change the lighting
signs_lib.glow(pos, node, puncher)
end
return signs_lib.update_sign(pos)
end