Fix some more global variables

master
random-geek 2021-04-02 12:37:59 -07:00
parent 69b8d1e2a4
commit b84894e492
1 changed files with 3 additions and 3 deletions

View File

@ -419,7 +419,7 @@ end
function auroras.climate_api_is_active(params)
if params.player then
pName = params.player:get_player_name()
local pName = params.player:get_player_name()
if auroras.player_data[pName] and
auroras.player_data[pName].was_visible then
return true
@ -429,10 +429,10 @@ function auroras.climate_api_is_active(params)
end
function auroras.climate_api_get_effects(params)
data = {}
local data = {}
if params.player then
pName = params.player:get_player_name()
local pName = params.player:get_player_name()
if auroras.player_data[pName] and
auroras.player_data[pName].current_sky then
data["climate_api:skybox"] = {