Merge pull request 'fix deprecated player:get_sky (#2528)' (#2534) from opfromthestart/MineClone2:new_sky into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2534 Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
commit
8d6a0bb564
@ -184,8 +184,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
|
||||
|
Loading…
Reference in New Issue
Block a user