1
0
mirror of https://gitlab.com/rautars/weather_pack.git synced 2024-11-13 05:40:19 +01:00

fix required privilege name

This commit is contained in:
Artūras Norkus 2016-05-01 17:29:28 +03:00
parent 210a33bd5b
commit 92e76c85cc

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