Rename weather mod
parent
f2687eb8cb
commit
ba7f334c35
|
@ -3,7 +3,7 @@
|
|||
-- By Kaadmy, for Pixture
|
||||
--
|
||||
|
||||
local mod_weather = minetest.get_modpath("weather")
|
||||
local mod_weather = minetest.get_modpath("rp_weather")
|
||||
|
||||
ambiance = {}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
name = ambiance
|
||||
depends = rp_default
|
||||
optional_depends = weather
|
||||
optional_depends = rp_weather
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
name = rp_farming
|
||||
depends = rp_default, weather, crafting, achievements
|
||||
depends = rp_default, rp_weather, crafting, achievements
|
||||
|
|
|
@ -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")
|
|
@ -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).
|
|
@ -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 ».
|
|
@ -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”.=
|
|
@ -1,2 +1,2 @@
|
|||
name = weather
|
||||
name = rp_weather
|
||||
depends = rp_default
|
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 117 B |
Loading…
Reference in New Issue