From 28608328905485f65028d7a30b8f13d5cfe753bf Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Thu, 26 Dec 2024 03:00:38 +0100 Subject: [PATCH] Allow changing maximum projectile time live --- mods/ITEMS/vl_projectile/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/vl_projectile/init.lua b/mods/ITEMS/vl_projectile/init.lua index 0eec40c1a..df57b3777 100644 --- a/mods/ITEMS/vl_projectile/init.lua +++ b/mods/ITEMS/vl_projectile/init.lua @@ -82,7 +82,7 @@ function mod.update_projectile(self, dtime) -- Update entity timer and remove expired projectiles self.timer = (self.timer or 0) + dtime - local maximum_flight_time = entity_vl_projectile.maximum_time or 300 + local maximum_flight_time = self._vl_projectile.maximum_time or 300 if (self.timer or 0) > maximum_flight_time then mcl_util.remove_entity(self) return