0
0
Fork 0

Change /weather none to /weather clear

This commit is contained in:
Wuzzy 2017-05-14 21:57:25 +02:00
parent f68150528d
commit e4938ae8d1
1 changed files with 2 additions and 2 deletions

View File

@ -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