summaryrefslogtreecommitdiff
path: root/noteblock.lua
diff options
context:
space:
mode:
Diffstat (limited to 'noteblock.lua')
-rw-r--r--noteblock.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/noteblock.lua b/noteblock.lua
index 80c4936..58bb747 100644
--- a/noteblock.lua
+++ b/noteblock.lua
@@ -4,6 +4,11 @@ if not minetest.get_modpath("mesecons_noteblock") then
end
local validnbsounds = dofile(minetest.get_modpath(minetest.get_current_modname())..DIR_DELIM.."nbsounds.lua")
+
+function digistuff.register_nb_sound(name,filename)
+ validnbsounds[name] = filename
+end
+
minetest.register_node("digistuff:noteblock", {
description = "Digilines Noteblock",
groups = {cracky=3},