mirror of
https://gitlab.com/rautars/weather_pack.git
synced 2025-01-10 08:20:17 +01:00
fix required privilege name
This commit is contained in:
parent
210a33bd5b
commit
92e76c85cc
@ -115,7 +115,7 @@ minetest.register_privilege("weather_manager", {
|
|||||||
minetest.register_chatcommand("set_weather", {
|
minetest.register_chatcommand("set_weather", {
|
||||||
params = "<weather>",
|
params = "<weather>",
|
||||||
description = "Changes weather by given param, parameter none will remove weather.",
|
description = "Changes weather by given param, parameter none will remove weather.",
|
||||||
privs = {rain_manager = true},
|
privs = {weather_manager = true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
if (param == "none") then
|
if (param == "none") then
|
||||||
if (weather.state ~= nil and weather.known_weathers[weather.state] ~= nil) then
|
if (weather.state ~= nil and weather.known_weathers[weather.state] ~= nil) then
|
||||||
|
Loading…
Reference in New Issue
Block a user