Add files via upload
parent
1700701f53
commit
45958b52f1
|
@ -1682,6 +1682,7 @@ aliveai.create_bot({
|
|||
spawn_y=0,
|
||||
spawn=function(self)
|
||||
local pos=self.object:get_pos()
|
||||
if pos then
|
||||
local opos=pos
|
||||
for i=0,10,1 do
|
||||
if aliveai.def({x=pos.x,y=pos.y-i,z=pos.z,},"walkable") and not minetest.is_protected(opos,"") then
|
||||
|
@ -1691,6 +1692,7 @@ aliveai.create_bot({
|
|||
end
|
||||
opos={x=pos.x,y=pos.y-i,z=pos.z,}
|
||||
end
|
||||
end
|
||||
aliveai.kill(self)
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue