From 221c44003469cb9fac63c5ce81d100ba28ce3f39 Mon Sep 17 00:00:00 2001 From: fozolo Date: Sat, 18 Aug 2018 04:23:19 -0400 Subject: [PATCH] Shorten max snowball life to ten seconds. (#39) --- src/snowball.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snowball.lua b/src/snowball.lua index 992e9d5..05d29d6 100644 --- a/src/snowball.lua +++ b/src/snowball.lua @@ -130,8 +130,8 @@ end --Snowball_entity.on_step()--> called when snowball is moving. function snow_snowball_ENTITY.on_step(self, dtime) self.timer = self.timer + dtime - if self.timer > 600 then - -- 10 minutes are too long for a snowball to fly somewhere + if self.timer > 10 then + -- 10 seconds is too long for a snowball to fly somewhere self.object:remove() return end