mirror of
https://github.com/t-affeldt/regional_weather.git
synced 2025-01-02 22:38:21 +01:00
Fix crash when MTG weather is enabled
This commit is contained in:
parent
f3e6d48b97
commit
4b44f25ef8
5
init.lua
5
init.lua
@ -34,13 +34,14 @@ regional_weather.settings.min_height = get_setting_number("min_height", -50)
|
|||||||
regional_weather.settings.cloud_height = get_setting_number("cloud_height", 120)
|
regional_weather.settings.cloud_height = get_setting_number("cloud_height", 120)
|
||||||
regional_weather.settings.cloud_scale = get_setting_number("cloud_scale", 40)
|
regional_weather.settings.cloud_scale = get_setting_number("cloud_scale", 40)
|
||||||
|
|
||||||
regional_weather.i18n = minetest.get_translator("regional_weather")
|
local S = minetest.get_translator("regional_weather")
|
||||||
|
regional_weather.i18n = S
|
||||||
|
|
||||||
-- warn about clouds being overriden by MTG weather
|
-- warn about clouds being overriden by MTG weather
|
||||||
if climate_mod.settings.skybox
|
if climate_mod.settings.skybox
|
||||||
and minetest.get_modpath("weather")
|
and minetest.get_modpath("weather")
|
||||||
and get_setting_bool("enable_weather", true, true) then
|
and get_setting_bool("enable_weather", true, true) then
|
||||||
minetest.log("warning", "[Regional Weather] " .. S("Disable MTG weather for the best experience"))
|
minetest.log("warning", "[Regional Weather] " .. S("Disable MTG weather for the best experience. Check the forum for more information."))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- import individual weather types
|
-- import individual weather types
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# textdomain:regional_weather
|
# textdomain:regional_weather
|
||||||
Disable MTG weather for the best experience=Deaktiviere MTG weather für die beste Spielerfahrung
|
Disable MTG weather for the best experience. Check the forum for more information.=Deaktiviere MTG weather für die beste Spielerfahrung. Mehr Informationen im Forum.
|
||||||
Thin Ice=Dünnes Eis
|
Thin Ice=Dünnes Eis
|
||||||
Puddle=Pfütze
|
Puddle=Pfütze
|
||||||
Snow Cover=Schnee
|
Snow Cover=Schnee
|
Loading…
Reference in New Issue
Block a user