From 60d67afab3d78ece7e9b4a61b50c60903e8c72a9 Mon Sep 17 00:00:00 2001 From: flux <25628292+fluxionary@users.noreply.github.com> Date: Wed, 11 May 2022 10:49:23 -0700 Subject: [PATCH] force all signs into the sign group --- api.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 0a55cd3..c2c329e 100644 --- a/api.lua +++ b/api.lua @@ -22,11 +22,9 @@ signs_lib.standard_yoffs = 0 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.sign = 1 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.sign = 1 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 {}) @@ -1029,6 +1027,9 @@ function signs_lib.register_sign(name, raw_def) def.groups = signs_lib.standard_wood_groups 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) def.selection_box = raw_def.selection_box or cbox