From cdd616f6b144ceaeb9ed691d4d6f2ef749575807 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 21 Feb 2017 15:00:16 +0100 Subject: [PATCH] Fix lightning sky color issues --- mods/ENVIRONMENT/lightning/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ENVIRONMENT/lightning/init.lua b/mods/ENVIRONMENT/lightning/init.lua index 25d4f84964..8ff5855beb 100644 --- a/mods/ENVIRONMENT/lightning/init.lua +++ b/mods/ENVIRONMENT/lightning/init.lua @@ -23,7 +23,7 @@ lightning.auto = true local rng = PcgRandom(32321123312123) local ps = {} -local ttl = 1 +local ttl = -1 local revertsky = function(dtime) if ttl == 0 then @@ -136,13 +136,13 @@ lightning.strike = function(pos) local name = player:get_player_name() if ps[name] == nil then ps[name] = {p = player, sky = sky} - skycolor.add_layer("lightning", {{r=255,g=255,b=255}}) + skycolor.add_layer("lightning", {{r=255,g=255,b=255}}, true) skycolor.active = true end end -- trigger revert of skybox - ttl = 5 + ttl = 0.1 -- set the air node above it on fire pos2.y = pos2.y + 1/2