Fix sound play function

master
HimbeerserverDE 2020-09-18 17:36:26 +02:00
parent db6760cb11
commit 8c9d5bcccc
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ local function a_action_on(pos, node)
})
local meta = minetest.get_meta(pos)
local sounds = minetest.parse_json(meta:get_string("sounds"))
if not sounds then sounds = {} end
table.insert(sounds, sound)
meta:set_string("sounds", minetest.write_json(sounds))
end