Fix all mobs being givin armor list (Fix Villager loosing jobs)

This commit is contained in:
epCode 2022-10-31 23:22:14 +00:00 committed by cora
parent 9099f3ac7a
commit 8a2962cd46

View File

@ -4096,7 +4096,7 @@ local mob_activate = function(self, staticdata, def, dtime)
self.on_spawn_run = true -- if true, set flag to run once only
end
end
if not self._run_armor_init then
if not self._run_armor_init and self.wears_armor then
self.armor_list={helmet="",chestplate="",boots="",leggings=""}
set_armor_texture(self)
self._run_armor_init = true