fix for weather type none
This commit is contained in:
parent
14d5236a46
commit
0880497887
|
@ -17,7 +17,7 @@ minetest.register_chatcommand("setweather", {
|
|||
end
|
||||
minetest.chat_send_player(name, "avalible weather types: "..types)
|
||||
else
|
||||
if weather_mod.registered_downfalls[param] == nil then
|
||||
if weather_mod.registered_downfalls[param] == nil and not param == "none" then
|
||||
minetest.chat_send_player(name, "This type of weather is not registered.\n"..
|
||||
"To list all types of weather run the command without parameters.")
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue