mirror of
https://github.com/t-affeldt/climate_api.git
synced 2024-12-22 17:00:36 +01:00
Try to disable MTG weather, reconfigure global cycle length, reformatting
This commit is contained in:
parent
4d0b080dd5
commit
bf2d4e09ca
9
init.lua
9
init.lua
@ -41,9 +41,16 @@ climate_mod.settings = {
|
|||||||
particle_count = get_setting_number("particle_count", 1),
|
particle_count = get_setting_number("particle_count", 1),
|
||||||
tick_speed = get_setting_number("tick_speed", 1),
|
tick_speed = get_setting_number("tick_speed", 1),
|
||||||
volume = get_setting_number("volume", 1),
|
volume = get_setting_number("volume", 1),
|
||||||
ceiling_checks = get_setting_number("ceiling_checks", 10),
|
ceiling_checks = get_setting_number("ceiling_checks", 10)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- warn about clouds being overriden by MTG weather
|
||||||
|
if climate_mod.settings.skybox and minetest.get_modpath("weather") and minetest.settings:get_bool("enable_weather") then
|
||||||
|
minetest.log("warning", "[Regional Weather] " ..
|
||||||
|
S("Disable MTG weather for the best experience. Check the forum for more information."))
|
||||||
|
minetest.settings:set_bool("enable_weather", false) -- try to disable MTG weather. may or may not work depending on load order
|
||||||
|
end
|
||||||
|
|
||||||
climate_mod.i18n = minetest.get_translator("climate_api")
|
climate_mod.i18n = minetest.get_translator("climate_api")
|
||||||
|
|
||||||
-- initialize empty registers
|
-- initialize empty registers
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
local GSCYCLE = 0.3 * climate_mod.settings.tick_speed -- only process event loop after this amount of time
|
local GSCYCLE = 0.06 * climate_mod.settings.tick_speed -- only process event loop after this amount of time
|
||||||
local WORLD_CYCLE = 30.00 * climate_mod.settings.tick_speed -- only update global environment influences after this amount of time
|
local WORLD_CYCLE = 30.00 * climate_mod.settings.tick_speed -- only update global environment influences after this amount of time
|
||||||
|
|
||||||
local gs_timer = 0
|
local gs_timer = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user