diff options
-rw-r--r-- | mesecons/services.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesecons/services.lua b/mesecons/services.lua index a3aab43..a2f9d01 100644 --- a/mesecons/services.lua +++ b/mesecons/services.lua @@ -1,4 +1,5 @@ -mesecon.on_placenode = function (pos, node) +mesecon.on_placenode = function (pos) + local node = minetest.env:get_node(pos) if mesecon:is_receptor_on(node.name) then mesecon:receptor_on(pos, mesecon:receptor_get_rules(node)) elseif mesecon:is_powered(pos) then |