From 3b1afb1783cc0f23859ce4f4a53dd43d3be283f4 Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Sun, 14 Apr 2013 13:54:33 -0400 Subject: Fix invalid node name if node was changed in after_place_node callback (fixes #93). --- mesecons/services.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3