From fd8693671d81eda7ab62c397b77d9496c39cc2f2 Mon Sep 17 00:00:00 2001 From: cheapie Date: Thu, 18 Apr 2024 18:32:58 -0500 Subject: Fix more bugs --- callbuttons.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'callbuttons.lua') 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 -- cgit v1.2.3