fix for weather type none

This commit is contained in:
theFox6 2018-06-30 17:23:53 +02:00
parent 14d5236a46
commit 0880497887
1 changed files with 1 additions and 1 deletions

View File

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