forked from VoxeLibre/VoxeLibre
Compare commits
No commits in common. "2e67e209320c2b84d116d8a8ce783055307663bb" and "2c3abd599b57be9435352ffa496f77f7758672c4" have entirely different histories.
2e67e20932
...
2c3abd599b
|
@ -1103,8 +1103,3 @@ function mcl_util.is_it_christmas()
|
|||
return false
|
||||
end
|
||||
end
|
||||
|
||||
function mcl_util.to_bool(val)
|
||||
if not val then return false end
|
||||
return true
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name = mcl_weather
|
||||
author = xeranas
|
||||
description = Weather and sky handling: Rain, snow, thunderstorm, End and Nether ambience
|
||||
depends = mcl_init, mcl_worlds, mcl_playerinfo, mcl_util
|
||||
depends = mcl_init, mcl_worlds, mcl_playerinfo
|
||||
optional_depends = lightning
|
||||
|
|
|
@ -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 = mcl_util.to_bool(minetest.get_modpath("mcl_potions"))
|
||||
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