Skip to content

Commit

Permalink
Doors: Use new sound name (fixes #236)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeija committed Oct 4, 2015
1 parent 6ef3b96 commit 0e7f68e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesecons_doors/init.lua
Expand Up @@ -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

Expand Down

0 comments on commit 0e7f68e

Please sign in to comment.