1
0
mirror of https://github.com/mt-mods/signs_lib.git synced 2024-12-25 08:40:17 +01:00

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

View File

@ -942,7 +942,9 @@ function signs_lib.register_fence_with_sign()
end
local use_glow = function(pos, node, puncher, pointed_thing)
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