From c044cf8e74b4f6912d5fdb57d4ba263b7040b9ca Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 13 Oct 2022 21:48:32 +0200 Subject: [PATCH] Fix debug line --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- mods/ENTITIES/mcl_mobs/spawning.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index fbf65b333..9e6f5a63d 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -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 diff --git a/mods/ENTITIES/mcl_mobs/spawning.lua b/mods/ENTITIES/mcl_mobs/spawning.lua index b3200db59..371407c4e 100644 --- a/mods/ENTITIES/mcl_mobs/spawning.lua +++ b/mods/ENTITIES/mcl_mobs/spawning.lua @@ -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