diff --git a/api.lua b/api.lua index b51d27e..b668f6a 100644 --- a/api.lua +++ b/api.lua @@ -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