blob: 17936348454a4d5dbdfa2390b2b838349cde0c70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
celevator = {
drives = {},
storage = minetest.get_mod_storage(),
}
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
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
|