1
0
mirror of https://github.com/mt-mods/signs_lib.git synced 2024-11-05 09:30:19 +01:00

Allow mod to specify custom selbox for on-pole variants

This commit is contained in:
Vanessa Dannenberg 2019-09-15 01:56:41 -04:00
parent c765d3b316
commit b021b9666f

View File

@ -766,6 +766,9 @@ function signs_lib.register_sign(name, rdef)
offset = 0.35
end
opdef.selection_box = rdef.onpole_selection_box or opdef.selection_box
opdef.node_box = rdef.onpole_node_box or opdef.selection_box
if opdef.paramtype2 == "wallmounted" then
opdef.node_box.wall_side[1] = def.node_box.wall_side[1] - offset
opdef.node_box.wall_side[4] = def.node_box.wall_side[4] - offset