diff options
author | Anthony Zhang <azhang9@gmail.com> | 2013-04-14 13:54:33 -0400 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2013-04-14 13:54:33 -0400 |
commit | 3b1afb1783cc0f23859ce4f4a53dd43d3be283f4 (patch) | |
tree | 7e7b12a09ccc69ac2b69e16e0875fadc472dc784 | |
parent | c08e868be24838db4904fb99d6f31dfba0a4688c (diff) | |
download | mesecons-3b1afb1783cc0f23859ce4f4a53dd43d3be283f4.tar mesecons-3b1afb1783cc0f23859ce4f4a53dd43d3be283f4.tar.gz mesecons-3b1afb1783cc0f23859ce4f4a53dd43d3be283f4.tar.bz2 mesecons-3b1afb1783cc0f23859ce4f4a53dd43d3be283f4.tar.xz mesecons-3b1afb1783cc0f23859ce4f4a53dd43d3be283f4.zip |
Fix invalid node name if node was changed in after_place_node callback (fixes #93).
-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 |