From b6127c265f421300aafa290a18c7c9416e7bf8e8 Mon Sep 17 00:00:00 2001 From: ElCeejo <40281901+ElCeejo@users.noreply.github.com> Date: Thu, 14 Jul 2022 22:22:09 -0700 Subject: [PATCH] Fix knockback --- api.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api.lua b/api.lua index ccdb97a..39c3339 100644 --- a/api.lua +++ b/api.lua @@ -443,8 +443,7 @@ function creatura.basic_punch_func(self, puncher, time_from_last_punch, tool_cap and is_value_in_table(self.immune_to, tool)) then return end - local dir = vec_multi(direction, -1) - self:apply_knockback(dir) + self:apply_knockback(direction) self:hurt((tool_capabilities.damage_groups.fleshy or damage) or 2) if random(4) < 2 then self:play_sound("hurt")