mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-06 08:37:30 +01:00
Allow changing maximum projectile time live
This commit is contained in:
parent
67f45bd6fb
commit
2860832890
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user