1
0
Fork 0

Fix prexisting villagers getting rid of job clothes

This commit is contained in:
epCode 2022-10-31 23:41:49 +00:00 committed by cora
parent 8a2962cd46
commit 4575fd0d81
1 changed files with 5 additions and 0 deletions

View File

@ -4096,6 +4096,11 @@ 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.wears_armor and self.armor_list then
self.armor_list = nil
end
if not self._run_armor_init and self.wears_armor then
self.armor_list={helmet="",chestplate="",boots="",leggings=""}
set_armor_texture(self)