mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-10 02:01:07 +01:00
Remove boolean coersion
This commit is contained in:
parent
37ff699a23
commit
21a88be2b2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue