1
0
Fork 0

Remove has_room debug data

This commit is contained in:
teknomunk 2024-09-13 21:31:26 -05:00
parent 626bdd13d8
commit 0b62c827aa
1 changed files with 0 additions and 15 deletions

View File

@ -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