Fix turn off callback

master
HimbeerserverDE 2020-09-18 17:38:48 +02:00
parent 8c9d5bcccc
commit ead95b3b5a
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ end
local function a_action_off(pos, node)
local meta = minetest.get_meta(pos)
local sounds = minetest.parse_json(meta:get_string("sounds"))
if not sounds then return end
for _, sound in ipairs(sounds) do
minetest.sound_stop(sound)
end