Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ 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(puncher)
add_wear = not minetest.is_creative_enabled(puncher.get_player_name())
end
if (self.immune_to
and contains_val(self.immune_to, tool_name)) then
Expand Down