mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-12-04 20:13:44 +01:00
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:
parent
d2c7abd98b
commit
d63d32b42b
@ -210,6 +210,9 @@ local models = {
|
||||
on_construct = display_api.on_construct,
|
||||
on_rightclick = display_poster,
|
||||
on_receive_fields = on_receive_fields_poster,
|
||||
on_punch = function(pos, node, player, pointed_thing)
|
||||
display_api.update_entities(pos)
|
||||
end,
|
||||
},
|
||||
},
|
||||
label_small = {
|
||||
|
Loading…
Reference in New Issue
Block a user