1
0
Fork 0

Fix debug line

pvp_knockback
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)
local do_jump = function(self)
if not self.jump
or self.jump_height == 0
or self.fly
or self.fly_in
or (self.child and self.type ~= "monster")
or self.order == "stand" then
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 n = #minetest.find_nodes_in_area(p1,p2,nodes) or 0
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
end
return true