forked from Mineclonia/Mineclonia
move weatherdef to top
This commit is contained in:
parent
cff2d445f7
commit
37a9d268ab
|
@ -18,10 +18,19 @@ players.weatheractive = {}
|
||||||
players.weather = {}
|
players.weather = {}
|
||||||
|
|
||||||
local interval=1
|
local interval=1
|
||||||
|
local weathercycle_active=false
|
||||||
|
|
||||||
function mcl_weather.register_weather(name,def)
|
function mcl_weather.register_weather(name,def)
|
||||||
mcl_weather.registered_weathers[name] = def
|
mcl_weather.registered_weathers[name] = def
|
||||||
end
|
end
|
||||||
|
mcl_weather.register_weather("none",{
|
||||||
|
min_duration = mcl_weather.min_duration,
|
||||||
|
max_duration = mcl_weather.max_duration,
|
||||||
|
transitions = {
|
||||||
|
[50] = "rain",
|
||||||
|
[100] = "snow"
|
||||||
|
}
|
||||||
|
})
|
||||||
local modpath=minetest.get_modpath(minetest.get_current_modname())
|
local modpath=minetest.get_modpath(minetest.get_current_modname())
|
||||||
dofile(modpath.."/skycolor.lua")
|
dofile(modpath.."/skycolor.lua")
|
||||||
dofile(modpath.."/snow.lua")
|
dofile(modpath.."/snow.lua")
|
||||||
|
@ -374,12 +383,3 @@ minetest.register_chatcommand("toggledownfall", {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
mcl_weather.register_weather("none",{
|
|
||||||
min_duration = mcl_weather.min_duration,
|
|
||||||
max_duration = mcl_weather.max_duration,
|
|
||||||
transitions = {
|
|
||||||
[50] = "rain",
|
|
||||||
[100] = "snow"
|
|
||||||
}
|
|
||||||
})
|
|
Loading…
Reference in New Issue