Fix broken translation call

This commit is contained in:
Till Affeldt 2023-04-02 10:57:26 +02:00
parent f3f0eaac2a
commit 79233a2cb1

View File

@ -44,15 +44,16 @@ climate_mod.settings = {
ceiling_checks = get_setting_number("ceiling_checks", 10) ceiling_checks = get_setting_number("ceiling_checks", 10)
} }
climate_mod.i18n = minetest.get_translator("climate_api")
-- warn about clouds being overriden by MTG weather -- 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 if climate_mod.settings.skybox and minetest.get_modpath("weather") and minetest.settings:get_bool("enable_weather") then
minetest.log("warning", "[Regional Weather] " .. minetest.log("warning", "[Regional Weather] " ..
S("Disable MTG weather for the best experience. Check the forum for more information.")) climate_mod.i18n("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 -- try to disable MTG weather. may or may not work depending on load order
minetest.settings:set_bool("enable_weather", false)
end end
climate_mod.i18n = minetest.get_translator("climate_api")
-- initialize empty registers -- initialize empty registers
climate_mod.weathers = {} climate_mod.weathers = {}
climate_mod.effects = {} climate_mod.effects = {}