From 636e5545a74c7468713094bb66395a5e5f3ffc72 Mon Sep 17 00:00:00 2001 From: epCode Date: Tue, 25 Oct 2022 18:54:57 +0000 Subject: [PATCH] Attacking mobs don't care if they cant make a jump. they try anyway --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 83520589ea..f2016f69ce 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -1448,7 +1448,7 @@ local do_jump = function(self) }, "air") -- we don't attempt to jump if there's a stack of blocks blocking - if minetest.registered_nodes[nodTop.name].walkable == true then + if minetest.registered_nodes[nodTop.name].walkable == true and not (self.attack and self.state == "attack") then return false end