Merge pull request #5 from EvolutionPixG/master

Fix for other craft objects
master
Shad MOrdre 2020-01-31 14:39:53 -08:00 committed by GitHub
commit 83d1d58ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@ minetest.register_on_craft(function(itemstack, tool_capabilities, player, old_c
--local default_name = itemstack:get_definition().original_description
if def_dg.fleshy and atk ~= nil then
atk = def_dg.damage_groups.fleshy
if def_dg.damage_groups ~= nil then
if def_dg ~= nil then
atk = def_dg.damage_groups.fleshy
end
end
else
atk = default_atk
end