diff options
author | Jeija <norrepli@gmail.com> | 2016-02-14 21:00:37 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2016-02-14 21:00:37 +0100 |
commit | 7865d428348e64b4aa2877830fd97a283b0ae44e (patch) | |
tree | 20642b272930ab2d94042a800b9015dac6581715 /mesecons_noteblock | |
parent | 809192f353af2faeb779df85104d4d7ed8d8943d (diff) |
Always use minetest.set_node instead of minetest.add_node for consistency
Diffstat (limited to 'mesecons_noteblock')
-rw-r--r-- | mesecons_noteblock/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_noteblock/init.lua b/mesecons_noteblock/init.lua index d5e49ff..d5e365c 100644 --- a/mesecons_noteblock/init.lua +++ b/mesecons_noteblock/init.lua @@ -5,7 +5,7 @@ minetest.register_node("mesecons_noteblock:noteblock", { on_punch = function(pos, node) -- change sound when punched node.param2 = (node.param2+1)%12 mesecon.noteblock_play(pos, node.param2) - minetest.add_node(pos, node) + minetest.set_node(pos, node) end, sounds = default.node_sound_wood_defaults(), mesecons = {effector = { -- play sound when activated |