forked from mtcontrib/signs_lib
force all signs into the sign group
This commit is contained in:
parent
4dbfbec96e
commit
60d67afab3
5
api.lua
5
api.lua
@ -22,11 +22,9 @@ signs_lib.standard_yoffs = 0
|
|||||||
signs_lib.standard_cpl = 35
|
signs_lib.standard_cpl = 35
|
||||||
|
|
||||||
signs_lib.standard_wood_groups = table.copy(default and minetest.registered_items["default:sign_wall_wood"].groups or {})
|
signs_lib.standard_wood_groups = table.copy(default and minetest.registered_items["default:sign_wall_wood"].groups or {})
|
||||||
signs_lib.standard_wood_groups.sign = 1
|
|
||||||
signs_lib.standard_wood_groups.attached_node = nil
|
signs_lib.standard_wood_groups.attached_node = nil
|
||||||
|
|
||||||
signs_lib.standard_steel_groups = table.copy(default and minetest.registered_items["default:sign_wall_steel"].groups or {})
|
signs_lib.standard_steel_groups = table.copy(default and minetest.registered_items["default:sign_wall_steel"].groups or {})
|
||||||
signs_lib.standard_steel_groups.sign = 1
|
|
||||||
signs_lib.standard_steel_groups.attached_node = nil
|
signs_lib.standard_steel_groups.attached_node = nil
|
||||||
|
|
||||||
signs_lib.standard_wood_sign_sounds = table.copy(default and minetest.registered_items["default:sign_wall_wood"].sounds or {})
|
signs_lib.standard_wood_sign_sounds = table.copy(default and minetest.registered_items["default:sign_wall_wood"].sounds or {})
|
||||||
@ -1029,6 +1027,9 @@ function signs_lib.register_sign(name, raw_def)
|
|||||||
def.groups = signs_lib.standard_wood_groups
|
def.groups = signs_lib.standard_wood_groups
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- force all signs into the sign group
|
||||||
|
def.groups.sign = def.groups.sign or 1
|
||||||
|
|
||||||
local cbox = signs_lib.make_selection_boxes(35, 25)
|
local cbox = signs_lib.make_selection_boxes(35, 25)
|
||||||
|
|
||||||
def.selection_box = raw_def.selection_box or cbox
|
def.selection_box = raw_def.selection_box or cbox
|
||||||
|
Loading…
Reference in New Issue
Block a user