Fix crash from stray flame arrows

This commit is contained in:
cora 2022-08-04 03:56:31 +02:00 committed by Gitea
parent 3922c5bdca
commit 970beba1b0
1 changed files with 1 additions and 0 deletions

View File

@ -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