Merge pull request 'Never show nitwit trading formspec' (#2466) from no-nitwit-trading into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2466
Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>
This commit is contained in:
cora 2022-07-20 10:37:30 +00:00
commit 7d57b3448a

View file

@ -1295,7 +1295,7 @@ mcl_mobs:register_mob("mobs_mc:villager", {
--minetest.log("arrived at jobsite")
end)
end
if self.child or self._profession == "unemployed" then
if self.child or self._profession == "unemployed" or self._profession == "nitwit" then
return
end
-- Initiate trading