Fix bug (again)

This commit is contained in:
ElCeejo 2022-08-03 23:44:22 -07:00 committed by GitHub
parent af3dd127b1
commit 74ecd52095
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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