1
0
mirror of https://github.com/mt-mods/signs_lib.git synced 2024-12-24 16:20:17 +01:00

Add standard wood and steel signs sound defs

use them in standard signs.
This commit is contained in:
Vanessa Dannenberg 2019-09-14 17:59:21 -04:00
parent 94745e123e
commit fe57c23132
2 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,9 @@ signs_lib.standard_wood_groups.sign = 1
signs_lib.standard_steel_groups = table.copy(minetest.registered_items["default:sign_wall_steel"].groups)
signs_lib.standard_steel_groups.sign = 1
signs_lib.standard_wood_sign_sounds = table.copy(minetest.registered_items["default:sign_wall_wood"].sounds)
signs_lib.standard_steel_sign_sounds = table.copy(minetest.registered_items["default:sign_wall_steel"].sounds)
signs_lib.standard_yaw = {
0,
math.pi / -2,

View File

@ -36,6 +36,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
inventory_image = "signs_lib_sign_wall_wooden_inv.png",
wield_image = "signs_lib_sign_wall_wooden_inv.png",
groups = wood_groups,
sounds = signs_lib.standard_wood_sign_sounds,
default_color = "0",
on_rightclick = signs_lib.construct_sign,
on_construct = signs_lib.construct_sign,
@ -76,6 +77,7 @@ for _, onpole in ipairs({"", "_onpole"}) do
inventory_image = "signs_lib_sign_wall_steel_inv.png",
wield_image = "signs_lib_sign_wall_steel_inv.png",
groups = wood_groups,
sounds = signs_lib.standard_steel_sign_sounds,
default_color = "0",
on_rightclick = signs_lib.construct_sign,
on_construct = signs_lib.construct_sign,