forked from VoxeLibre/VoxeLibre
Fix prexisting villagers getting rid of job clothes
This commit is contained in:
parent
8a2962cd46
commit
4575fd0d81
|
@ -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)
|
||||
|
|
Reference in New Issue