mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 12:01:06 +01:00
make "old" villagers keep their job
This commit is contained in:
parent
de994f3f06
commit
98a322443b
1 changed files with 5 additions and 3 deletions
|
@ -1367,10 +1367,12 @@ mcl_mobs:register_mob("mobs_mc:villager", {
|
|||
return
|
||||
end
|
||||
self._id=minetest.sha1(minetest.get_gametime()..minetest.pos_to_string(self.object:get_pos())..tostring(math.random()))
|
||||
if not self._profession then
|
||||
self._profession = "unemployed"
|
||||
if math.random(100) == 1 then
|
||||
self._profession = "nitwit"
|
||||
end
|
||||
end
|
||||
set_textures(self)
|
||||
end,
|
||||
on_die = function(self, pos)
|
||||
|
|
Loading…
Reference in a new issue