1
0
Fork 0

Add missing mesecon node sounds

objects
Wuzzy 2017-01-17 17:41:04 +01:00
parent 3c8f5e92a5
commit b8eeda3df0
2 changed files with 9 additions and 4 deletions

View File

@ -123,6 +123,7 @@ for zmy=0, 1 do
state = mesecon.state.off, state = mesecon.state.off,
onstate = "mesecons:wire_"..nodeid.."_on" onstate = "mesecons:wire_"..nodeid.."_on"
}}, }},
sounds = default.node_sound_defaults(),
}) })
minetest.register_node("mesecons:wire_"..nodeid.."_on", { minetest.register_node("mesecons:wire_"..nodeid.."_on", {
@ -153,6 +154,7 @@ for zmy=0, 1 do
state = mesecon.state.on, state = mesecon.state.on,
offstate = "mesecons:wire_"..nodeid.."_off" offstate = "mesecons:wire_"..nodeid.."_off"
}}, }},
sounds = default.node_sound_defaults(),
}) })
end end
end end

View File

@ -49,7 +49,7 @@ end
-- image: inventory and wield image of the pressure plate -- image: inventory and wield image of the pressure plate
-- recipe: crafting recipe 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 = { local ppspec = {
offstate = offstate, offstate = offstate,
onstate = onstate onstate = onstate
@ -67,6 +67,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
description = description, description = description,
pressureplate = ppspec, pressureplate = ppspec,
on_timer = pp_on_timer, on_timer = pp_on_timer,
sounds = sounds,
mesecons = {receptor = { mesecons = {receptor = {
state = mesecon.state.off state = mesecon.state.off
}}, }},
@ -86,7 +87,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
drop = offstate, drop = offstate,
pressureplate = ppspec, pressureplate = ppspec,
on_timer = pp_on_timer, on_timer = pp_on_timer,
sounds = default.node_sound_wood_defaults(), sounds = sounds,
mesecons = {receptor = { mesecons = {receptor = {
state = mesecon.state.on state = mesecon.state.on
}}, }},
@ -113,7 +114,8 @@ mesecon:register_pressure_plate(
"Wooden Pressure Plate", "Wooden Pressure Plate",
"default_wood.png", "default_wood.png",
"default_wood.png", "default_wood.png",
{{"group:wood", "group:wood"}}) {{"group:wood", "group:wood"}},
default.node_sound_wood_defaults())
mesecon:register_pressure_plate( mesecon:register_pressure_plate(
"mesecons_pressureplates:pressure_plate_stone_off", "mesecons_pressureplates:pressure_plate_stone_off",
@ -121,7 +123,8 @@ mesecon:register_pressure_plate(
"Stone Pressure Plate", "Stone Pressure Plate",
"default_stone.png", "default_stone.png",
"default_stone.png", "default_stone.png",
{{"default:stone", "default:stone"}}) {{"default:stone", "default:stone"}},
default.node_sound_stone_defaults())
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",