From f1cfee9c780cbac5c1250596a3b98a449f9724dc Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 20 Feb 2017 19:24:23 +0100 Subject: [PATCH] Rename set_weather to weather command --- mods/MISC/weather_pack/weather_core.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/MISC/weather_pack/weather_core.lua b/mods/MISC/weather_pack/weather_core.lua index 66466bea0..bdbf3ff31 100644 --- a/mods/MISC/weather_pack/weather_core.lua +++ b/mods/MISC/weather_pack/weather_core.lua @@ -132,9 +132,9 @@ minetest.register_privilege("weather_manager", { }) -- Weather command definition. Set -minetest.register_chatcommand("set_weather", { - params = "", - description = "Changes weather by given param, parameter none will remove weather.", +minetest.register_chatcommand("weather", { + params = "none | rain | snow | thunder", + description = "Changes the weather to the specified parameter.", privs = {weather_manager = true}, func = function(name, param) if (param == "none") then @@ -172,4 +172,4 @@ if minetest.setting_getbool("weather_allow_override_nodes") then if minetest.registered_nodes["default:meselamp"] then minetest.override_item("default:meselamp", {sunlight_propagates = false}) end -end \ No newline at end of file +end