From 83f26803a1dcb641ab04669cd164fd268f778065 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Wed, 19 Jun 2024 08:49:26 -0500 Subject: [PATCH] Remove boolean coersion --- mods/ENVIRONMENT/mcl_weather/skycolor/effects.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENVIRONMENT/mcl_weather/skycolor/effects.lua b/mods/ENVIRONMENT/mcl_weather/skycolor/effects.lua index c3dd32fc7..c8b4a32af 100644 --- a/mods/ENVIRONMENT/mcl_weather/skycolor/effects.lua +++ b/mods/ENVIRONMENT/mcl_weather/skycolor/effects.lua @@ -5,7 +5,7 @@ local DIM_ALLOW_NIGHT_VISION = { local NIGHT_VISION_RATIO = mcl_weather.skycolor.NIGHT_VISION_RATIO local effects_handlers = {} -local has_mcl_potions = not not minetest.get_modpath("mcl_potions") -- Coerce to boolean with "not not" +local has_mcl_potions = minetest.get_modpath("mcl_potions") function effects_handlers.darkness(player, meta, effect, sky_data) -- No darkness effect if visited by shepherd