also check amor variable while integrating with 3D Armor

This commit is contained in:
Leonard-Orlando Menzel 2024-01-22 22:38:17 +01:00 committed by GitHub
parent 8408a73851
commit 7c4ce99986
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -512,6 +512,7 @@ minetest.register_craftitem("animalia:net", {
----------- -----------
if minetest.get_modpath("3d_armor") then if minetest.get_modpath("3d_armor") then
if amor ~= nil then
table.insert(armor.attributes, "heavy_pelt") table.insert(armor.attributes, "heavy_pelt")
armor:register_armor("animalia:coat_bear_pelt", { armor:register_armor("animalia:coat_bear_pelt", {
@ -541,6 +542,9 @@ if minetest.get_modpath("3d_armor") then
end end
end end
end) end)
else
minetest.log("warning", "Animalia: Conflicts with other mods, couldnt properly integrate with 3D_armor")
end
end end
----------- -----------