Add files via upload

master
AiTechEye 2018-08-13 12:07:26 +02:00 committed by GitHub
parent 5d4db3e164
commit dd49bdfc59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -348,7 +348,7 @@ minetest.register_node("aliveai_ants:antbase", {
on_construct = function(pos)
local m=minetest.get_meta(pos)
m:set_int("count",1)
minetest.env:get_node_timer(pos):start(10)
minetest.get_node_timer(pos):start(10)
end,
})
@ -404,9 +404,10 @@ minetest.register_entity("aliveai_ants:antcarry",{
local pos=self.object:get_pos()
if not (c and c.x) then aliveai.punch(self,self.object,20) return end
local v={x=(c.x-pos.x)*4,y=(c.y-pos.y+0.5)*4, z=(c.z-pos.z)*4}
self.object:setvelocity(v)
self.object:set_velocity(v)
return self
end,
time=0,
type=""
})