mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
move weather back to gfx & add world:client/environment.json file
This commit is contained in:
parent
7a86cbdd60
commit
db620010a3
11 changed files with 68 additions and 37 deletions
|
|
@ -273,7 +273,7 @@ console.add_command(
|
|||
return "weather preset not found"
|
||||
end
|
||||
local preset = json.parse(file.read(filename))
|
||||
weather.change(preset, args[2], args[1])
|
||||
gfx.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 = weather.get_current()
|
||||
local name = gfx.weather.get_current()
|
||||
if name == "" then
|
||||
return "unnamed " .. json.tostring(weather.get_current_data(), true)
|
||||
return "unnamed " .. json.tostring(gfx.weather.get_current_data(), true)
|
||||
else
|
||||
return name
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue