mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-29 12:47:30 +01:00
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)
|
||||
|
Loading…
Reference in New Issue
Block a user