mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-19 14:00:20 +02:00
switch over all punch-operated objects
to use on_rightclick instead, for consistency with other parts of minetest, minetest_game, etc.
This commit is contained in:
@ -11,7 +11,7 @@ homedecor.register("speaker", {
|
||||
},
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
minetest.set_node(pos, {name = "homedecor:speaker_open", param2 = node.param2})
|
||||
end
|
||||
})
|
||||
@ -27,7 +27,7 @@ homedecor.register("speaker_open", {
|
||||
},
|
||||
groups = { snappy = 3, not_in_creative_inventory=1 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
minetest.set_node(pos, {name = "homedecor:speaker", param2 = node.param2})
|
||||
end
|
||||
})
|
||||
|
Reference in New Issue
Block a user