forked from VoxeLibre/VoxeLibre
Rename set_weather to weather command
This commit is contained in:
parent
45e45e9c66
commit
f1cfee9c78
|
@ -132,9 +132,9 @@ minetest.register_privilege("weather_manager", {
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Weather command definition. Set
|
-- Weather command definition. Set
|
||||||
minetest.register_chatcommand("set_weather", {
|
minetest.register_chatcommand("weather", {
|
||||||
params = "<weather>",
|
params = "none | rain | snow | thunder",
|
||||||
description = "Changes weather by given param, parameter none will remove weather.",
|
description = "Changes the weather to the specified parameter.",
|
||||||
privs = {weather_manager = true},
|
privs = {weather_manager = true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
if (param == "none") then
|
if (param == "none") then
|
||||||
|
@ -172,4 +172,4 @@ if minetest.setting_getbool("weather_allow_override_nodes") then
|
||||||
if minetest.registered_nodes["default:meselamp"] then
|
if minetest.registered_nodes["default:meselamp"] then
|
||||||
minetest.override_item("default:meselamp", {sunlight_propagates = false})
|
minetest.override_item("default:meselamp", {sunlight_propagates = false})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue