Fixed mapgen spawning, Deprecate globalstep spawning

This commit is contained in:
ElCeejo 2023-07-17 18:04:30 -07:00
parent 59602c9d36
commit 725eafb6e0
5 changed files with 380 additions and 479 deletions

View file

@ -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