Fix debug line

This commit is contained in:
cora 2022-10-13 21:48:32 +02:00
parent 93f8f2aa3b
commit c044cf8e74
2 changed files with 2 additions and 2 deletions

View File

@ -1382,10 +1382,10 @@ end
-- jump if facing a solid node (not fences or gates) -- jump if facing a solid node (not fences or gates)
local do_jump = function(self) local do_jump = function(self)
if not self.jump if not self.jump
or self.jump_height == 0 or self.jump_height == 0
or self.fly or self.fly
or self.fly_in
or (self.child and self.type ~= "monster") or (self.child and self.type ~= "monster")
or self.order == "stand" then or self.order == "stand" then
return false return false

View File

@ -453,7 +453,7 @@ local function has_room(self,pos)
local p2 = vector.offset(pos,cb[4],cb[5],cb[6]) local p2 = vector.offset(pos,cb[4],cb[5],cb[6])
local n = #minetest.find_nodes_in_area(p1,p2,nodes) or 0 local n = #minetest.find_nodes_in_area(p1,p2,nodes) or 0
if r > n then if r > n then
minetest.log("no room for mob "..self.name) minetest.log("warning","[mcl_mobs] No room for mob "..self.name.." at "..minetest.pos_to_string(vector.round(pos)))
return false return false
end end
return true return true