mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +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
|
|
@ -208,7 +208,6 @@ void WorldInfo::deserialize(const dv::value& root) {
|
|||
totalTime = timeobj["total-time"].asNumber();
|
||||
}
|
||||
if (root.has("weather")) {
|
||||
weather.deserialize(root["weather"]);
|
||||
fog = root["weather"]["fog"].asNumber();
|
||||
}
|
||||
nextInventoryId = root["next-inventory-id"].asInteger(2);
|
||||
|
|
@ -232,7 +231,7 @@ dv::value WorldInfo::serialize() const {
|
|||
timeobj["day-time-speed"] = daytimeSpeed;
|
||||
timeobj["total-time"] = totalTime;
|
||||
|
||||
root["weather"] = weather.serialize();
|
||||
root["weather"] = dv::object();
|
||||
root["weather"]["fog"] = fog;
|
||||
|
||||
root["next-inventory-id"] = nextInventoryId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue