From e0734952cec2ceabedaa01839de1bf41dcd937ff Mon Sep 17 00:00:00 2001 From: kay27 Date: Fri, 27 Nov 2020 23:27:43 +0400 Subject: [PATCH] quick fix 'not def and def.walkable' --- mods/ENTITIES/mcl_mobs/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index a4e87341f..5f5d6906d 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -753,7 +753,7 @@ local is_at_cliff_or_danger = function(self) return true else local def = minetest.registered_nodes[bnode.name] - return (not def and def.walkable) + return not (def and def.walkable) end end @@ -789,7 +789,7 @@ local is_at_water_danger = function(self) return true else local def = minetest.registered_nodes[bnode.name] - return (not def and def.walkable) + return not (def and def.walkable) end end