From 74ecd520953142778c4ae6ed0c492f06999c4fdd Mon Sep 17 00:00:00 2001 From: ElCeejo <40281901+ElCeejo@users.noreply.github.com> Date: Wed, 3 Aug 2022 23:44:22 -0700 Subject: [PATCH] Fix bug (again) --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index f8b73e5..cc4afed 100644 --- a/api.lua +++ b/api.lua @@ -464,7 +464,7 @@ function creatura.basic_punch_func(self, puncher, tflp, tool_caps, dir) end self:hurt(tool_caps.damage_groups.fleshy) if add_wear then - local wear = floor((tool_caps.damage_groups.full_punch_interval / 75) * 9000) + local wear = floor((tool_caps.full_punch_interval / 75) * 9000) tool:add_wear(wear) puncher:set_wielded_item(tool) end