Weather: fix chatcommand

master
MoNTE48 2020-03-13 20:40:58 +01:00
parent 4a6fe58502
commit d6f7b633b1
1 changed files with 2 additions and 2 deletions

View File

@ -1128,12 +1128,12 @@ core.register_chatcommand("weather", {
description = "Set weather type",
privs = {weather = true},
func = function(name, param)
if param and (weather_type.registered[param] or param == "none") then
if param and (weather.registered[param] or param == "none") then
weather.type = param
core.chat_send_player(name, "Set weather type: " .. param)
else
local types = "none"
for w, _ in pairs(weather_type.registered) do
for w, _ in pairs(weather.registered) do
types = types .. ", " .. w
end
core.chat_send_player(name, "Avalible weather types: " .. types)