mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-02-18 03:24:59 +01:00
make mob's not switch armor lying on the ground if they are already equiped.
This commit is contained in:
parent
86eef8827a
commit
239eca8988
1 changed files with 2 additions and 0 deletions
|
@ -3327,6 +3327,8 @@ local function check_item_pickup(self)
|
||||||
end
|
end
|
||||||
if not self.armor_list then
|
if not self.armor_list then
|
||||||
self.armor_list={helmet="",chestplate="",boots="",leggings=""}
|
self.armor_list={helmet="",chestplate="",boots="",leggings=""}
|
||||||
|
elseif self.armor_list[armor_type] and self.armor_list[armor_type] ~= "" then
|
||||||
|
return
|
||||||
end
|
end
|
||||||
self.armor_list[armor_type]=ItemStack(l.itemstring):get_name()
|
self.armor_list[armor_type]=ItemStack(l.itemstring):get_name()
|
||||||
o:remove()
|
o:remove()
|
||||||
|
|
Loading…
Reference in a new issue