mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Change /weather none to /weather clear
This commit is contained in:
parent
f68150528d
commit
e4938ae8d1
1 changed files with 2 additions and 2 deletions
|
@ -133,11 +133,11 @@ minetest.register_privilege("weather_manager", {
|
|||
|
||||
-- Weather command definition. Set
|
||||
minetest.register_chatcommand("weather", {
|
||||
params = "none | rain | snow | thunder",
|
||||
params = "clear | rain | snow | thunder",
|
||||
description = "Changes the weather to the specified parameter.",
|
||||
privs = {weather_manager = true},
|
||||
func = function(name, param)
|
||||
if (param == "none") then
|
||||
if (param == "clear") then
|
||||
if (weather.state ~= nil and weather.reg_weathers[weather.state] ~= nil) then
|
||||
weather.reg_weathers[weather.state].clear()
|
||||
weather.state = param
|
||||
|
|
Loading…
Reference in a new issue