From 68365273b48623bb344c1cc46cef5a5cd4f66a63 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 3 Apr 2023 02:44:27 -0700 Subject: [PATCH] Update api.lua Fix punch for mineclone2 --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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