mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Remove has_room debug data
This commit is contained in:
parent
626bdd13d8
commit
0b62c827aa
1 changed files with 0 additions and 15 deletions
|
@ -1,5 +1,4 @@
|
|||
--lua locals
|
||||
local DEBUG = false
|
||||
local math, vector, minetest, mcl_mobs = math, vector, minetest, mcl_mobs
|
||||
local mob_class = mcl_mobs.mob_class
|
||||
|
||||
|
@ -561,20 +560,6 @@ local function has_room(self, pos)
|
|||
local dz = p2.z - p1.z + 1
|
||||
local found_nodes = minetest.find_nodes_in_area(p1,p2,nodes) or 0
|
||||
local n = #found_nodes
|
||||
if DEBUG then
|
||||
minetest.log(dump({
|
||||
cb = cb,
|
||||
pos = pos,
|
||||
n = n,
|
||||
dx = dx,
|
||||
dy = dy,
|
||||
dz = dz,
|
||||
p1 = p1,
|
||||
p2 = p2,
|
||||
found_nodes = found_nodes,
|
||||
nodes = nodes,
|
||||
}))
|
||||
end
|
||||
if n == dx * dy * dz then
|
||||
return true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue