1
0
mirror of https://github.com/Splizard/minetest-mod-snow.git synced 2025-07-27 04:02:33 +02:00

Shorten max snowball life to ten seconds.

This commit is contained in:
Foz
2018-05-14 22:05:21 -04:00
parent 1510ced771
commit 6af6c64d23

View File

@ -130,8 +130,8 @@ end
--Snowball_entity.on_step()--> called when snowball is moving. --Snowball_entity.on_step()--> called when snowball is moving.
function snow_snowball_ENTITY.on_step(self, dtime) function snow_snowball_ENTITY.on_step(self, dtime)
self.timer = self.timer+dtime self.timer = self.timer+dtime
if self.timer > 600 then if self.timer > 10 then
-- 10 minutes are too long for a snowball to fly somewhere -- 10 seconds is too long for a snowball to fly somewhere
self.object:remove() self.object:remove()
return return
end end