From 758d8c55450505e4acc7e567687a9f6a8c59fe86 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Thu, 5 Sep 2024 06:40:01 -0500 Subject: [PATCH] Fix crash related to nil _time_in_air --- mods/ITEMS/mcl_bows/arrow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_bows/arrow.lua b/mods/ITEMS/mcl_bows/arrow.lua index 135e63eab..be5b7f68c 100644 --- a/mods/ITEMS/mcl_bows/arrow.lua +++ b/mods/ITEMS/mcl_bows/arrow.lua @@ -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