From af3dd127b163bc8f974318b985e75da268860a63 Mon Sep 17 00:00:00 2001 From: ElCeejo <40281901+ElCeejo@users.noreply.github.com> Date: Wed, 3 Aug 2022 23:42:08 -0700 Subject: [PATCH] Fix bug --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 3512037..f8b73e5 100644 --- a/api.lua +++ b/api.lua @@ -445,13 +445,13 @@ function creatura.basic_punch_func(self, puncher, tflp, tool_caps, dir) if puncher:is_player() then tool = puncher:get_wielded_item() tool_name = tool:get_name() - add_wear = not minetest.is_creative_enabled(target) + add_wear = not minetest.is_creative_enabled(puncher) end if (self.immune_to and is_value_in_table(self.immune_to, tool_name)) then return end - self:apply_knockback(dir, 8) + self:apply_knockback(dir, 12) if not tool_caps or not tool_caps.damage_groups or not tool_caps.damage_groups.fleshy then