Rename weather mod

master
Wuzzy 2022-04-22 21:07:12 +02:00
parent f2687eb8cb
commit ba7f334c35
13 changed files with 14 additions and 14 deletions

View File

@ -3,7 +3,7 @@
-- By Kaadmy, for Pixture
--
local mod_weather = minetest.get_modpath("weather")
local mod_weather = minetest.get_modpath("rp_weather")
ambiance = {}

View File

@ -1,3 +1,3 @@
name = ambiance
depends = rp_default
optional_depends = weather
optional_depends = rp_weather

View File

@ -1,2 +1,2 @@
name = rp_farming
depends = rp_default, weather, crafting, achievements
depends = rp_default, rp_weather, crafting, achievements

View File

@ -3,7 +3,7 @@
-- By Kaadmy, for Pixture
--
local S = minetest.get_translator("weather")
local S = minetest.get_translator("rp_weather")
local mod_storage = minetest.get_mod_storage()
@ -24,7 +24,7 @@ local sound_min_height = -20 -- Below -20m you can't hear weather
local default_cloud_state = nil
local loaded_weather = mod_storage:get_string("weather:weather")
local loaded_weather = mod_storage:get_string("rp_weather:weather")
local weather_inited = false
local function update_sounds(do_repeat)
@ -78,8 +78,8 @@ local function setweather_type(type, do_repeat)
stoptimer = stoptimer_init
end
weather.weather = type
mod_storage:set_string("weather:weather", weather.weather)
minetest.log("action", "[weather] Weather set to: "..weather.weather)
mod_storage:set_string("rp_weather:weather", weather.weather)
minetest.log("action", "[rp_weather] Weather set to: "..weather.weather)
update_sounds(do_repeat)
return true
else
@ -114,8 +114,8 @@ minetest.register_globalstep(
weather.weather = "storm"
end
if oldweather ~= weather.weather then
mod_storage:set_string("weather:weather", weather.weather)
minetest.log("action", "[weather] Weather changed to: "..weather.weather)
mod_storage:set_string("rp_weather:weather", weather.weather)
minetest.log("action", "[rp_weather] Weather changed to: "..weather.weather)
update_sounds()
stoptimer = stoptimer_init
end
@ -241,4 +241,4 @@ minetest.register_on_leaveplayer(function(player)
sound_handles[player:get_player_name()] = nil
end)
default.log("mod:weather", "loaded")
default.log("mod:rp_weather", "loaded")

View File

@ -1,4 +1,4 @@
# textdomain: weather
# textdomain: rp_weather
Can change the weather using the /weather command=Kann das Wetter mit dem „/weather“-Befehl ändern
Change the weather=Das Wetter ändern
Incorrect weather. Valid weathers are “storm” and “clear”.=Ungültiges Wetter. Gültige Wetter sind „storm“ (Sturm) und „clear“ (klar).

View File

@ -1,4 +1,4 @@
# textdomain: weather
# textdomain: rp_weather
Can change the weather using the /weather command=Peut changer la météo en utilisant la commande /weather
Change the weather=Changer la météo
Incorrect weather. Valid weathers are “storm” and “clear”.=Météo incorrecte. Les temps valides sont « storm» et « clear ».

View File

@ -1,4 +1,4 @@
# textdomain: weather
# textdomain: rp_weather
Can change the weather using the /weather command=
Change the weather=
Incorrect weather. Valid weathers are “storm” and “clear”.=

View File

@ -1,2 +1,2 @@
name = weather
name = rp_weather
depends = rp_default

View File

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 117 B