mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-09-22 11:26:43 -04:00
also check amor variable while integrating with 3D Armor
This commit is contained in:
parent
8408a73851
commit
7c4ce99986
1 changed files with 32 additions and 28 deletions
|
@ -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
|
||||||
|
|
||||||
-----------
|
-----------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue