summaryrefslogtreecommitdiff
path: root/callbuttons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'callbuttons.lua')
-rw-r--r--callbuttons.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/callbuttons.lua b/callbuttons.lua
index 080ca54..46875fe 100644
--- a/callbuttons.lua
+++ b/callbuttons.lua
@@ -36,7 +36,7 @@ local validstates = {
}
function celevator.callbutton.setlight(pos,dir,newstate)
- local node = minetest.get_node(pos)
+ local node = celevator.get_node(pos)
if minetest.get_item_group(node.name,"_celevator_callbutton") ~= 1 then return end
if dir == "up" then
if minetest.get_item_group(node.name,"_celevator_callbutton_has_up") ~= 1 then return end