blob: 1e45914f3b8b3839a9df3db64ad98e12aa9e44a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
function mesecons_debug.get_blockpos(pos)
return {
x = math.floor(pos.x / 16),
y = math.floor(pos.y / 16),
z = math.floor(pos.z / 16)
}
end
function mesecons_debug.hashpos(pos)
return minetest.hash_node_position({
x = math.floor(pos.x / 16),
y = math.floor(pos.y / 16),
z = math.floor(pos.z / 16)
})
end
function mesecons_debug.wait(n)
local wait_until = minetest.get_us_time() + n
while minetest.get_us_time() < wait_until do end
end
|