mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-25 17:39:33 +01:00
abolish child labor
This commit is contained in:
parent
3118102ca7
commit
98c48dab8c
1 changed files with 1 additions and 0 deletions
|
@ -629,6 +629,7 @@ local function look_for_job(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_a_job(self)
|
local function get_a_job(self)
|
||||||
|
if self.child then return end
|
||||||
local p = self.object:get_pos()
|
local p = self.object:get_pos()
|
||||||
local n = minetest.find_node_near(p,1,jobsites)
|
local n = minetest.find_node_near(p,1,jobsites)
|
||||||
if n and employ(self,n) then return true end
|
if n and employ(self,n) then return true end
|
||||||
|
|
Loading…
Reference in a new issue