Try to disable MTG weather, reconfigure global cycle length, reformatting

This commit is contained in:
Till Affeldt 2023-02-23 04:33:17 +01:00
parent 4d0b080dd5
commit bf2d4e09ca
2 changed files with 26 additions and 19 deletions

View File

@ -41,9 +41,16 @@ climate_mod.settings = {
particle_count = get_setting_number("particle_count", 1),
tick_speed = get_setting_number("tick_speed", 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")
-- initialize empty registers

View File

@ -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 gs_timer = 0