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

View file

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