From 95b0a27213538967eed831bbf2c552c8222dd41f Mon Sep 17 00:00:00 2001 From: Code-Sploit Date: Fri, 5 Feb 2021 10:36:48 +0000 Subject: [PATCH] Fix Mobs not taking knockback on the Y-axis --- 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 430c97166c..4ef270ec44 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3091,7 +3091,7 @@ local mob_punch = function(self, hitter, tflp, tool_capabilities, dir) self.object:set_velocity({ x = dir.x * kb, - y = dir.y * kb + up, + y = dir.y * kb + up * 2, z = dir.z * kb })