mirror of
https://github.com/t-affeldt/climate_api.git
synced 2024-12-22 08:50:37 +01:00
Fix broken translation call
This commit is contained in:
parent
f3f0eaac2a
commit
79233a2cb1
9
init.lua
9
init.lua
@ -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 = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user