forked from VoxeLibre/VoxeLibre
Fix crash from stray flame arrows
This commit is contained in:
parent
3922c5bdca
commit
970beba1b0
|
@ -144,6 +144,7 @@ function ARROW_ENTITY.on_step(self, dtime)
|
|||
end
|
||||
self._stuckrechecktimer = 0
|
||||
end
|
||||
if not pos then return end
|
||||
-- Pickup arrow if player is nearby (not in Creative Mode)
|
||||
local objects = minetest.get_objects_inside_radius(pos, 1)
|
||||
for _,obj in ipairs(objects) do
|
||||
|
|
Loading…
Reference in New Issue