summaryrefslogtreecommitdiff
path: root/mesecons_commandblock/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_commandblock/init.lua')
-rw-r--r--mesecons_commandblock/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_commandblock/init.lua b/mesecons_commandblock/init.lua
index b84e815..69249eb 100644
--- a/mesecons_commandblock/init.lua
+++ b/mesecons_commandblock/init.lua
@@ -144,7 +144,7 @@ local commandblock_action_on = function(pos, node)
return
end
- mesecon:swap_node(pos, "mesecons_commandblock:commandblock_on")
+ minetest.swap_node(pos, {name = "mesecons_commandblock:commandblock_on"})
local meta = minetest.env:get_meta(pos)
local command = minetest.chatcommands[meta:get_string("command")]
@@ -166,7 +166,7 @@ end
local commandblock_action_off = function(pos, node)
if node.name == "mesecons_commandblock:commandblock_on" then
- mesecon:swap_node(pos, "mesecons_commandblock:commandblock_off")
+ minetest.swap_node(pos, {name = "mesecons_commandblock:commandblock_off"})
end
end