epic_weather/init.lua

24 lines
449 B
Lua

local MP = minetest.get_modpath("epic_weather")
epic_weather = {
current_weather = {}
}
dofile(MP.."/register.lua")
dofile(MP.."/block.lua")
dofile(MP.."/light_rain.lua")
dofile(MP.."/rain.lua")
dofile(MP.."/thunderstorm.lua")
dofile(MP.."/snow.lua")
local function cleanup(playername)
epic_weather.current_weather[playername] = nil
end
-- epic exit hook, cleanups
epic.register_hook({
on_epic_exit = cleanup,
on_epic_abort = cleanup
})