1
0
Fork 0

Remove unused parent data for arrows

This commit is contained in:
jordan4ibanez 2021-05-10 20:06:38 -04:00
parent 7e132866bf
commit 052bb540ba
1 changed files with 0 additions and 10 deletions

View File

@ -118,16 +118,6 @@ ARROW_ENTITY.on_step = function(self, dtime)
dpos = vector.round(dpos)
local node = minetest.get_node(dpos)
if self.object:get_attach() ~= nil and self.object:get_attach(parent):get_hp() < 1 then
self.object:remove()
end
minetest.register_on_leaveplayer(function(player)
if self.object:get_attach(parent) == player then
self.object:remove()
end
end)
if self._stuck then
self._stucktimer = self._stucktimer + dtime
self._stuckrechecktimer = self._stuckrechecktimer + dtime