Changed to new get_sky method

This commit is contained in:
opfromthestart 2022-08-07 18:19:12 -04:00
parent 3922c5bdca
commit 866711a4aa
1 changed files with 2 additions and 1 deletions

View File

@ -182,8 +182,9 @@ lightning.register_on_strike(function(pos, pos2, objects)
for i = 1, #playerlist do
local player = playerlist[i]
local sky = {}
local sky_table = player:get_sky(true)
sky.bgcolor, sky.type, sky.textures = player:get_sky()
sky.bgcolor, sky.type, sky.textures = sky_table.base_color, sky_table.type, sky_table.textures
local name = player:get_player_name()
if ps[name] == nil then