Update Fork #9

Merged
chmodsayshello merged 403 commits from MineClone5/MineClone5:master into master 2022-08-02 15:50:37 +02:00
1 changed files with 7 additions and 2 deletions
Showing only changes of commit b7f3b8edd5 - Show all commits

View File

@ -107,11 +107,11 @@ mobs.armor_setup = function(self)
end end
end end
-- Setup table containing the armor items -- Save armor items in lua entity
self._armor_items = {} self._armor_items = {}
for atype, material in pairs(armor) do for atype, material in pairs(armor) do
local item = "mcl_armor:" .. atype .. "_" .. material local item = "mcl_armor:" .. atype .. "_" .. material
table.insert(self._armor_items, item) self._armor_items[atype] = item
end end
-- Setup armor drops -- Setup armor drops
@ -155,6 +155,11 @@ mobs.armor_setup = function(self)
local armor_groups = self.object:get_armor_groups() local armor_groups = self.object:get_armor_groups()
armor_groups.fleshy = armor_strength armor_groups.fleshy = armor_strength
self.armor = armor_groups self.armor = armor_groups
-- Helmet protects mob from sun damage
if armor.helmet then
self.ignited_by_sunlight = false
end
end end
end end