mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-30 23:03:45 +01:00
Remove boolean coersion
This commit is contained in:
parent
37ff699a23
commit
21a88be2b2
@ -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 New Issue
Block a user