From b8eeda3df0b14f6e498d1d5559db3b31e1bd956e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 17 Jan 2017 17:41:04 +0100 Subject: [PATCH] Add missing mesecon node sounds --- mods/redstone/mesecons/wires.lua | 2 ++ mods/redstone/mesecons_pressureplates/init.lua | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/mods/redstone/mesecons/wires.lua b/mods/redstone/mesecons/wires.lua index 885d404308..de626e9ce6 100644 --- a/mods/redstone/mesecons/wires.lua +++ b/mods/redstone/mesecons/wires.lua @@ -123,6 +123,7 @@ for zmy=0, 1 do state = mesecon.state.off, onstate = "mesecons:wire_"..nodeid.."_on" }}, + sounds = default.node_sound_defaults(), }) minetest.register_node("mesecons:wire_"..nodeid.."_on", { @@ -153,6 +154,7 @@ for zmy=0, 1 do state = mesecon.state.on, offstate = "mesecons:wire_"..nodeid.."_off" }}, + sounds = default.node_sound_defaults(), }) end end diff --git a/mods/redstone/mesecons_pressureplates/init.lua b/mods/redstone/mesecons_pressureplates/init.lua index feb359cf93..e16975220b 100644 --- a/mods/redstone/mesecons_pressureplates/init.lua +++ b/mods/redstone/mesecons_pressureplates/init.lua @@ -49,7 +49,7 @@ end -- image: inventory and wield image of the pressure plate -- recipe: crafting recipe of the pressure plate -function mesecon:register_pressure_plate(offstate, onstate, description, texture_off, texture_on, recipe) +function mesecon:register_pressure_plate(offstate, onstate, description, texture_off, texture_on, recipe, sounds) local ppspec = { offstate = offstate, onstate = onstate @@ -67,6 +67,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture description = description, pressureplate = ppspec, on_timer = pp_on_timer, + sounds = sounds, mesecons = {receptor = { state = mesecon.state.off }}, @@ -86,7 +87,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture drop = offstate, pressureplate = ppspec, on_timer = pp_on_timer, - sounds = default.node_sound_wood_defaults(), + sounds = sounds, mesecons = {receptor = { state = mesecon.state.on }}, @@ -113,7 +114,8 @@ mesecon:register_pressure_plate( "Wooden Pressure Plate", "default_wood.png", "default_wood.png", - {{"group:wood", "group:wood"}}) + {{"group:wood", "group:wood"}}, + default.node_sound_wood_defaults()) mesecon:register_pressure_plate( "mesecons_pressureplates:pressure_plate_stone_off", @@ -121,7 +123,8 @@ mesecon:register_pressure_plate( "Stone Pressure Plate", "default_stone.png", "default_stone.png", - {{"default:stone", "default:stone"}}) + {{"default:stone", "default:stone"}}, + default.node_sound_stone_defaults()) minetest.register_craft({ type = "fuel",