1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-29 10:00:21 +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:
Vanessa Ezekowitz
2017-02-20 18:30:59 -05:00
parent 8ea285e683
commit f09481c3f0
7 changed files with 21 additions and 22 deletions

View File

@ -59,7 +59,7 @@ homedecor.register("desk_fan", {
meta:set_string("active", "no")
add_mesh_desk_fan_entity(pos)
end,
on_punch = function(pos)
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
local meta = minetest.get_meta(pos)
local entities = minetest.get_objects_inside_radius(pos, 0.1)
local entity = entities[1] or add_mesh_desk_fan_entity(pos)