fixed naming conventions and removed old unused sounds

This commit is contained in:
crabman77 2015-09-03 22:06:00 +02:00
parent a069481169
commit e30aaa16e3
4 changed files with 4 additions and 4 deletions

View File

@ -586,11 +586,11 @@ local function punch_gate(pos, node)
local tmp_node2
if state2 == 1 then
state2 = 0
minetest.sound_play("door_close", {gain = 0.3, max_hear_distance = 10})
minetest.sound_play("doors_door_close", {gain = 0.3, max_hear_distance = 10})
tmp_node2 = {name="fences:fencegate", param1=node.param1, param2=node.param2}
else
state2 = 1
minetest.sound_play("door_open", {gain = 0.3, max_hear_distance = 10})
minetest.sound_play("doors_door_open", {gain = 0.3, max_hear_distance = 10})
tmp_node2 = {name="fences:fencegate_open", param1=node.param1, param2=node.param2}
end
update_gate(pos, tmp_node2)

View File

@ -13,9 +13,9 @@ local function on_rightclick(pos, dir, check_name, replace, replace_dir, params)
minetest.swap_node(pos, {name = replace, param2 = p2})
if (minetest.get_meta(pos):get_int("right") ~= 0) == (params[1] ~= 3) then
minetest.sound_play("door_close", {pos = pos, gain = 0.3, max_hear_distance = 10})
minetest.sound_play("doors_door_close", {pos = pos, gain = 0.3, max_hear_distance = 10})
else
minetest.sound_play("door_open", {pos = pos, gain = 0.3, max_hear_distance = 10})
minetest.sound_play("doors_door_open", {pos = pos, gain = 0.3, max_hear_distance = 10})
end
end