updated parameters for passing to the set_sky function
This commit is contained in:
parent
88d1e223a1
commit
a7bb1f917e
4
init.lua
4
init.lua
@ -43,7 +43,7 @@ local revertsky = function()
|
||||
local player = minetest.get_player_by_name(playername)
|
||||
-- check if the player is still online
|
||||
if player then
|
||||
player:set_sky(sky.bgcolor, sky.type, sky.textures)
|
||||
player:set_sky({base_color = sky.bgcolor, type = sky.type, textures = sky.textures})
|
||||
end
|
||||
end
|
||||
|
||||
@ -152,7 +152,7 @@ lightning.strike = function(pos)
|
||||
local name = player:get_player_name()
|
||||
if ps[name] == nil then
|
||||
ps[name] = sky
|
||||
player:set_sky(0xffffff, "plain", {})
|
||||
player:set_sky(player:set_sky({base_color = 0xffffff, type = "plain", textures = {}}))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user