mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Fix lightning sky color issues
This commit is contained in:
parent
ae023dfe1f
commit
cdd616f6b1
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ lightning.auto = true
|
||||||
local rng = PcgRandom(32321123312123)
|
local rng = PcgRandom(32321123312123)
|
||||||
|
|
||||||
local ps = {}
|
local ps = {}
|
||||||
local ttl = 1
|
local ttl = -1
|
||||||
|
|
||||||
local revertsky = function(dtime)
|
local revertsky = function(dtime)
|
||||||
if ttl == 0 then
|
if ttl == 0 then
|
||||||
|
@ -136,13 +136,13 @@ lightning.strike = function(pos)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
if ps[name] == nil then
|
if ps[name] == nil then
|
||||||
ps[name] = {p = player, sky = sky}
|
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
|
skycolor.active = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- trigger revert of skybox
|
-- trigger revert of skybox
|
||||||
ttl = 5
|
ttl = 0.1
|
||||||
|
|
||||||
-- set the air node above it on fire
|
-- set the air node above it on fire
|
||||||
pos2.y = pos2.y + 1/2
|
pos2.y = pos2.y + 1/2
|
||||||
|
|
Loading…
Reference in a new issue