mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Changed to new get_sky method
This commit is contained in:
parent
3922c5bdca
commit
866711a4aa
1 changed files with 2 additions and 1 deletions
|
@ -182,8 +182,9 @@ lightning.register_on_strike(function(pos, pos2, objects)
|
||||||
for i = 1, #playerlist do
|
for i = 1, #playerlist do
|
||||||
local player = playerlist[i]
|
local player = playerlist[i]
|
||||||
local sky = {}
|
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()
|
local name = player:get_player_name()
|
||||||
if ps[name] == nil then
|
if ps[name] == nil then
|
||||||
|
|
Loading…
Reference in a new issue