Override on_punch for poster node definition

The signs_api `register_sign`'s default `on_punch` sets a sign's formspec to the
sign editor. If we protect a poster and then punch/break it, subsequent attempts
to view the poster will briefly cause the the sign editor to display before the
actual poster formspec. Small, but annoying.
This commit is contained in:
R3R3R3 2020-02-10 19:38:48 +01:00
parent d2c7abd98b
commit d63d32b42b

@ -210,6 +210,9 @@ local models = {
on_construct = display_api.on_construct, on_construct = display_api.on_construct,
on_rightclick = display_poster, on_rightclick = display_poster,
on_receive_fields = on_receive_fields_poster, on_receive_fields = on_receive_fields_poster,
on_punch = function(pos, node, player, pointed_thing)
display_api.update_entities(pos)
end,
}, },
}, },
label_small = { label_small = {