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

minor code cleanup

This commit is contained in:
Arturas Norkus
2017-06-24 19:15:33 +03:00
parent 1f07735c44
commit e90133b30a
7 changed files with 187 additions and 202 deletions

View File

@ -2,13 +2,13 @@ local modpath = minetest.get_modpath("weather_pack");
-- 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")
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")
dofile(modpath.."/embedded_happy_weather_api.lua")
dofile(modpath.."/commands.lua")
end
-- Happy Weather utilities
@ -20,10 +20,10 @@ dofile(modpath.."/heavy_rain.lua")
dofile(modpath.."/snow.lua")
if minetest.get_modpath("lightning") ~= nil then
dofile(modpath.."/thunder.lua")
-- Turn off lightning mod 'auto mode'
lightning.auto = false
dofile(modpath.."/thunder.lua")
-- Turn off lightning mod 'auto mode'
lightning.auto = false
end
dofile(modpath.."/abm.lua")