fix required privilege name

This commit is contained in:
Artūras Norkus 2016-05-01 17:29:28 +03:00
parent 210a33bd5b
commit 92e76c85cc
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ minetest.register_privilege("weather_manager", {
minetest.register_chatcommand("set_weather", {
params = "<weather>",
description = "Changes weather by given param, parameter none will remove weather.",
privs = {rain_manager = true},
privs = {weather_manager = true},
func = function(name, param)
if (param == "none") then
if (weather.state ~= nil and weather.known_weathers[weather.state] ~= nil) then