From 79233a2cb1fc6e221fd835a1e565307351221728 Mon Sep 17 00:00:00 2001 From: Till Affeldt Date: Sun, 2 Apr 2023 10:57:26 +0200 Subject: [PATCH] Fix broken translation call --- init.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index cf9f82b..4cbd76b 100644 --- a/init.lua +++ b/init.lua @@ -44,15 +44,16 @@ climate_mod.settings = { ceiling_checks = get_setting_number("ceiling_checks", 10) } +climate_mod.i18n = minetest.get_translator("climate_api") + -- 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 + climate_mod.i18n("Disable MTG weather for the best experience. Check the forum for more information.")) + -- try to disable MTG weather. may or may not work depending on load order + minetest.settings:set_bool("enable_weather", false) end -climate_mod.i18n = minetest.get_translator("climate_api") - -- initialize empty registers climate_mod.weathers = {} climate_mod.effects = {}