diff --git a/weather/command.lua b/weather/command.lua index b9c4a09..ea2dc1e 100644 --- a/weather/command.lua +++ b/weather/command.lua @@ -9,7 +9,7 @@ minetest.register_chatcommand("setweather", { description = "Set weather to rain, snow or none", -- full description privs = {weather = true}, func = function(name, param) - weather = param + weather.type = param save_weather() end })