move weather library out of gfx
This commit is contained in:
@@ -273,7 +273,7 @@ console.add_command(
|
||||
return "weather preset not found"
|
||||
end
|
||||
local preset = json.parse(file.read(filename))
|
||||
gfx.weather.change(preset, args[2], args[1])
|
||||
weather.change(preset, args[2], args[1])
|
||||
return "weather set to "..filename.." preset ("..tostring(args[2]).." s)"
|
||||
end
|
||||
)
|
||||
@@ -282,9 +282,9 @@ console.add_command(
|
||||
"weather",
|
||||
"Display current weather preset name",
|
||||
function (args, kwargs)
|
||||
local name = gfx.weather.get_current()
|
||||
local name = weather.get_current()
|
||||
if name == "" then
|
||||
return "unnamed " .. json.tostring(gfx.weather.get_current_data(), true)
|
||||
return "unnamed " .. json.tostring(weather.get_current_data(), true)
|
||||
else
|
||||
return name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user