summaryrefslogtreecommitdiff
path: root/homedecor/climate-control.lua
diff options
context:
space:
mode:
Diffstat (limited to 'homedecor/climate-control.lua')
-rw-r--r--homedecor/climate-control.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/homedecor/climate-control.lua b/homedecor/climate-control.lua
index bb68583..b47960d 100644
--- a/homedecor/climate-control.lua
+++ b/homedecor/climate-control.lua
@@ -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)