Fix crash related to nil _time_in_air

This commit is contained in:
teknomunk 2024-09-05 06:40:01 -05:00
parent fa54eab20d
commit dac847e56e
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ local arrow_entity = {
-- mcl_burning.tick may remove object immediately
if not self.object:get_pos() then return end
self._time_in_air = self._time_in_air + dtime
self._time_in_air = (self._time_in_air or 0) + dtime
-- Give the arrows a maximum flight time
if self._time_in_air > ARROW_TIMEOUT then