mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-07-09 16:20:29 -04:00
Fixed mapgen spawning, Deprecate globalstep spawning
This commit is contained in:
parent
59602c9d36
commit
725eafb6e0
5 changed files with 380 additions and 479 deletions
2
api.lua
2
api.lua
|
@ -516,7 +516,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
Add a link
Reference in a new issue