mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-04-30 05:41:46 -04:00
Update api.lua
Fix punch for mineclone2
This commit is contained in:
parent
de5ddbd4c1
commit
68365273b4
1 changed files with 1 additions and 1 deletions
2
api.lua
2
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
|
||||
|
|
Loading…
Add table
Reference in a new issue