mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 14:01:07 +01:00
Fixed remaining get_sky calls
This commit is contained in:
parent
e9954d1785
commit
b8af222538
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ end
|
||||||
function mcl_weather.rain.add_player(player)
|
function mcl_weather.rain.add_player(player)
|
||||||
if mcl_weather.players[player:get_player_name()] == nil then
|
if mcl_weather.players[player:get_player_name()] == nil then
|
||||||
local player_meta = {}
|
local player_meta = {}
|
||||||
player_meta.origin_sky = {player:get_sky()}
|
player_meta.origin_sky = {player:get_sky(true)}
|
||||||
mcl_weather.players[player:get_player_name()] = player_meta
|
mcl_weather.players[player:get_player_name()] = player_meta
|
||||||
update_sound[player:get_player_name()]=true
|
update_sound[player:get_player_name()]=true
|
||||||
end
|
end
|
||||||
|
|
|
@ -246,7 +246,7 @@ mcl_weather.skycolor = {
|
||||||
get_current_bg_color = function()
|
get_current_bg_color = function()
|
||||||
local players = mcl_weather.skycolor.utils.get_players(nil)
|
local players = mcl_weather.skycolor.utils.get_players(nil)
|
||||||
if players[1] then
|
if players[1] then
|
||||||
return players[1]:get_sky()
|
return players[1]:get_sky(true).sky_color
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue