mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2024-12-28 23:40:17 +01:00
Shorten max snowball life to ten seconds. (#39)
This commit is contained in:
parent
036f502968
commit
221c440034
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user