From f7fb83891a77739b34c97c93bd6f1c8a000d3687 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 29 Jan 2020 23:37:16 +0100 Subject: [PATCH] Mobs: Replace name-based fence/wall check --- mods/ENTITIES/mcl_mobs/api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 50dc2c9d4..bef78212e 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -912,9 +912,9 @@ local do_jump = function(self) if self.walk_chance == 0 or minetest.registered_items[nod.name].walkable then - if not nod.name:find("fence") - and not nod.name:find("fence_gate") - and not nod.name:find("wall") then + if minetest.get_item_group(nod.name, "fence") == 0 + and minetest.get_item_group(nod.name, "fence_gate") == 0 + and minetest.get_item_group(nod.name, "wall") == 0 then local v = self.object:get_velocity()