mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 05:50:17 +02:00
Always use minetest.set_node instead of minetest.add_node for consistency
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user