updated parameters for passing to the set_sky function

This commit is contained in:
Vitaliy Olkhin 2025-01-13 22:20:18 +05:00
parent 88d1e223a1
commit a7bb1f917e

View File

@ -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