summaryrefslogtreecommitdiff
path: root/controller.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-04-18 18:32:58 -0500
committercheapie <no-email-for-you@example.com>2024-04-18 18:32:58 -0500
commitfd8693671d81eda7ab62c397b77d9496c39cc2f2 (patch)
tree6d6a2972a19444cd00d80a28bf238c697c849e7e /controller.lua
parentfced29c598cdcda58aec2e5db4fca19aae06bf45 (diff)
downloadcelevator-fd8693671d81eda7ab62c397b77d9496c39cc2f2.tar
celevator-fd8693671d81eda7ab62c397b77d9496c39cc2f2.tar.gz
celevator-fd8693671d81eda7ab62c397b77d9496c39cc2f2.tar.bz2
celevator-fd8693671d81eda7ab62c397b77d9496c39cc2f2.tar.xz
celevator-fd8693671d81eda7ab62c397b77d9496c39cc2f2.zip
Fix more bugs
Diffstat (limited to 'controller.lua')
-rw-r--r--controller.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/controller.lua b/controller.lua
index d60e2be..cb212ce 100644
--- a/controller.lua
+++ b/controller.lua
@@ -93,7 +93,7 @@ end
local function controllerleds(pos,running)
local toppos = vector.add(pos,vector.new(0,1,0))
- local node = minetest.get_node(toppos)
+ local node = celevator.get_node(toppos)
local sparams = {
pos = toppos,
}
@@ -397,12 +397,12 @@ function celevator.controller.iscontroller(pos,call2)
end
function celevator.controller.finddrive(pos)
- local node = minetest.get_node(pos)
+ local node = celevator.get_node(pos)
local dir = minetest.facedir_to_dir(node.param2)
local drivepos = vector.add(pos,vector.new(0,1,0))
drivepos = vector.add(drivepos,vector.rotate_around_axis(dir,vector.new(0,-1,0),math.pi/2))
drivepos = vector.round(drivepos)
- local drivename = minetest.get_node(drivepos).name
+ local drivename = celevator.get_node(drivepos).name
return drivepos,minetest.registered_nodes[drivename]._celevator_drive_type
end
@@ -440,7 +440,7 @@ function celevator.controller.finish(pos,mem,changedinterrupts)
end
end
end
- local node = minetest.get_node(pos)
+ local node = celevator.get_node(pos)
local oldmem = minetest.deserialize(meta:get_string("mem")) or {}
local oldupbuttonlights = oldmem.upcalls or {}
local olddownbuttonlights = oldmem.dncalls or {}