Add files via upload

master
AiTechEye 2019-08-24 12:26:43 +02:00 committed by GitHub
parent 1163bcdec5
commit 029b5e513d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -436,6 +436,7 @@ aliveai.generate_house=function(self,v)
else
aliveai.showstatus(self,"generate house")
end
--materials
local build_able=aliveai.random(1,aliveai.get_everything_to_build_chance)==1
@ -453,6 +454,8 @@ aliveai.generate_house=function(self,v)
pos=self
self.distance=15
end
pos.y=pos.y-1
local np=minetest.find_node_near(pos, self.distance,aliveai.basics)
if np then
local name=minetest.get_node(np).name