mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Fix prexisting villagers getting rid of job clothes
This commit is contained in:
parent
8a2962cd46
commit
4575fd0d81
1 changed files with 5 additions and 0 deletions
|
@ -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
|
self.on_spawn_run = true -- if true, set flag to run once only
|
||||||
end
|
end
|
||||||
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
|
if not self._run_armor_init and self.wears_armor then
|
||||||
self.armor_list={helmet="",chestplate="",boots="",leggings=""}
|
self.armor_list={helmet="",chestplate="",boots="",leggings=""}
|
||||||
set_armor_texture(self)
|
set_armor_texture(self)
|
||||||
|
|
Loading…
Reference in a new issue