Always use minetest.set_node instead of minetest.add_node for consistency

This commit is contained in:
Jeija
2016-02-14 21:00:37 +01:00
parent 809192f353
commit 7865d42834
8 changed files with 19 additions and 19 deletions

View File

@ -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