From 08804978879f78eb51280a74b084957ffea0858a Mon Sep 17 00:00:00 2001 From: theFox6 Date: Sat, 30 Jun 2018 17:23:53 +0200 Subject: [PATCH] fix for weather type none --- weather/command.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather/command.lua b/weather/command.lua index 87df6c6..ec4c417 100644 --- a/weather/command.lua +++ b/weather/command.lua @@ -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