mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-25 08:21:07 +01:00
Fix crash related to nil _time_in_air
This commit is contained in:
parent
a6cb215720
commit
dd2c6638f6
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ local arrow_entity = {
|
||||||
-- mcl_burning.tick may remove object immediately
|
-- mcl_burning.tick may remove object immediately
|
||||||
if not self.object:get_pos() then return end
|
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
|
-- Give the arrows a maximum flight time
|
||||||
if self._time_in_air > ARROW_TIMEOUT then
|
if self._time_in_air > ARROW_TIMEOUT then
|
||||||
|
|
Loading…
Reference in a new issue