2023-08-04 11:25:45 -05:00
|
|
|
celevator = {
|
|
|
|
drives = {},
|
|
|
|
storage = minetest.get_mod_storage(),
|
|
|
|
}
|
2024-04-18 18:32:58 -05:00
|
|
|
|
|
|
|
function celevator.get_node(pos)
|
|
|
|
local node = minetest.get_node_or_nil(pos)
|
|
|
|
if node then return node end
|
|
|
|
VoxelManip(pos,pos)
|
|
|
|
return minetest.get_node(pos)
|
|
|
|
end
|
2024-04-20 12:22:42 -05:00
|
|
|
|
|
|
|
function celevator.get_meta(pos)
|
|
|
|
if minetest.get_node_or_nil(pos) then
|
|
|
|
return minetest.get_meta(pos)
|
|
|
|
else
|
|
|
|
VoxelManip(pos,pos)
|
|
|
|
return minetest.get_meta(pos)
|
|
|
|
end
|
|
|
|
end
|