From 11ee1d133f72e58cb13f4f15229fcb9d55510545 Mon Sep 17 00:00:00 2001 From: kabou Date: Wed, 9 Mar 2022 18:26:51 +0100 Subject: [PATCH] Fix cut-n-paste error. * Swap misplaced lines. * Concatenate conditional expression. --- mods/ENTITIES/mcl_mobs/api.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 394003957..c38c8eafa 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -1328,9 +1328,8 @@ local do_jump = function(self) return false end - if self.walk_chance == 0 local ndef = minetest.registered_nodes[nod.name] - or ndef and ndef.walkable then + if self.walk_chance == 0 or ndef and ndef.walkable then if minetest.get_item_group(nod.name, "fence") == 0 and minetest.get_item_group(nod.name, "fence_gate") == 0