Update command.lua

uses weather.type instead
This commit is contained in:
theFox6 2018-04-10 19:11:49 +02:00 committed by GitHub
parent f8169ca2f3
commit 0cbbccc850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ minetest.register_chatcommand("setweather", {
description = "Set weather to rain, snow or none", -- full description description = "Set weather to rain, snow or none", -- full description
privs = {weather = true}, privs = {weather = true},
func = function(name, param) func = function(name, param)
weather = param weather.type = param
save_weather() save_weather()
end end
}) })