mirror of
https://github.com/t-affeldt/climate_api.git
synced 2024-12-22 08:50:37 +01:00
lib/trigger: remove unrequired tests
This commit is contained in:
parent
dd769dfdd0
commit
e8f4048670
@ -93,10 +93,8 @@ function trigger.get_active_effects()
|
|||||||
local hp = player:get_hp()
|
local hp = player:get_hp()
|
||||||
-- skip weather presets for dead players
|
-- skip weather presets for dead players
|
||||||
if hp ~= nil and hp > 0 then
|
if hp ~= nil and hp > 0 then
|
||||||
environments[pname] = trigger.get_player_environment(player)
|
local env = trigger.get_player_environment(player)
|
||||||
end
|
environments[pname] = env
|
||||||
local env = environments[pname]
|
|
||||||
if env ~= nil then
|
|
||||||
for wname, wconfig in pairs(climate_mod.weathers) do
|
for wname, wconfig in pairs(climate_mod.weathers) do
|
||||||
if is_weather_active(player, wname, env) then
|
if is_weather_active(player, wname, env) then
|
||||||
if climate_mod.current_weather[pname] == nil then
|
if climate_mod.current_weather[pname] == nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user