forked from VoxeLibre/VoxeLibre
make "old" villagers keep their job
This commit is contained in:
parent
de994f3f06
commit
98a322443b
|
@ -1367,9 +1367,11 @@ mcl_mobs:register_mob("mobs_mc:villager", {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
self._id=minetest.sha1(minetest.get_gametime()..minetest.pos_to_string(self.object:get_pos())..tostring(math.random()))
|
self._id=minetest.sha1(minetest.get_gametime()..minetest.pos_to_string(self.object:get_pos())..tostring(math.random()))
|
||||||
self._profession = "unemployed"
|
if not self._profession then
|
||||||
if math.random(100) == 1 then
|
self._profession = "unemployed"
|
||||||
self._profession = "nitwit"
|
if math.random(100) == 1 then
|
||||||
|
self._profession = "nitwit"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
set_textures(self)
|
set_textures(self)
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue