Remove boolean coersion

This commit is contained in:
teknomunk 2024-06-19 08:49:26 -05:00
parent 37ff699a23
commit 21a88be2b2
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ local DIM_ALLOW_NIGHT_VISION = {
local NIGHT_VISION_RATIO = mcl_weather.skycolor.NIGHT_VISION_RATIO local NIGHT_VISION_RATIO = mcl_weather.skycolor.NIGHT_VISION_RATIO
local effects_handlers = {} 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) function effects_handlers.darkness(player, meta, effect, sky_data)
-- No darkness effect if visited by shepherd -- No darkness effect if visited by shepherd