This commit is contained in:
Andrea Plati
2015-09-14 19:44:47 +02:00
parent 28c2d02278
commit 150f862b41
47 changed files with 52 additions and 20 deletions

View File

@ -44,6 +44,9 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
self.timer=self.timer+dtime
local pos = self.object:getpos()
local node = minetest.get_node(pos)
if not self.inventory or not self.stack then
self.object:remove()
end
if self.timer>0.2 then
local objs = minetest.get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 1)