mirror of
https://gitlab.com/echoes91/throwing.git
synced 2025-07-03 00:30:22 +02:00
1.4.1
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user