1
0
mirror of https://gitlab.com/rautars/weather_pack.git synced 2025-07-16 05:40:22 +02:00

start using happy_weather_api, fix #8 sky reseting issue

This commit is contained in:
Arturas Norkus
2017-05-22 13:40:16 +03:00
parent dcde7bdd2d
commit 9ec1790b16
30 changed files with 1420 additions and 680 deletions

View File

@ -1,13 +1,29 @@
local modpath = minetest.get_modpath("weather_pack");
dofile(modpath.."/weather_core.lua")
dofile(modpath.."/snow.lua")
-- If skylayer mod not located then embeded version will be loaded.
if minetest.get_modpath("skylayer") == nil then
dofile(modpath.."/embedded_sky_layer_api.lua")
end
-- If happy_weather_api mod not located then embeded version will be loaded.
if minetest.get_modpath("happy_weather_api") == nil then
dofile(modpath.."/embedded_happy_weather_api.lua")
dofile(modpath.."/commands.lua")
end
-- Happy Weather utilities
dofile(modpath.."/utils.lua")
dofile(modpath.."/light_rain.lua")
dofile(modpath.."/rain.lua")
dofile(modpath.."/heavy_rain.lua")
dofile(modpath.."/snow.lua")
if minetest.get_modpath("lightning") ~= nil then
dofile(modpath.."/thunder.lua")
end
-- If not located then embeded skycolor mod version will be loaded.
if minetest.get_modpath("skycolor") == nil then
dofile(modpath.."/skycolor.lua")
end
-- Turn off lightning mod 'auto mode'
lightning.auto = false
dofile(modpath.."/abm.lua")