Skip to content

Chunk saving#446

Merged
caelunshun merged 10 commits into
feather-rs:mainfrom
koskja:develop
Aug 19, 2021
Merged

Chunk saving#446
caelunshun merged 10 commits into
feather-rs:mainfrom
koskja:develop

Conversation

@koskja

@koskja koskja commented Aug 8, 2021

Copy link
Copy Markdown
Contributor

Chunk saving

Status

  • Ready
  • Development
  • Hold

Description

Chunks now get saved when they are unloaded.
Removed the WorldSource trait and a WorldGenerator and a RegionWorker are now used instead.

Related issues

#443

Checklist

  • Ran cargo fmt, cargo clippy, cargo build --release and cargo test and fixed any generated errors!
  • Removed unnecessary commented out code
  • Used specific traces (if you trace actions please specify the cause i.e. the player)

@koskja

koskja commented Aug 8, 2021

Copy link
Copy Markdown
Contributor Author

Currently experiencing a bug that causes a chunk to get shifted 16 blocks up when unloaded and loaded later. Seems to involve fcb811d

@koskja koskja marked this pull request as ready for review August 13, 2021 18:54
@koskja

koskja commented Aug 13, 2021

Copy link
Copy Markdown
Contributor Author

Review?

@Defman Defman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks overall good. The chunk cache unload_queue does not seem to getting filled?

Its quite a few changes, but there's nothing jumping out as being plain wrong.

@koskja

koskja commented Aug 19, 2021

Copy link
Copy Markdown
Contributor Author

Maybe review? Btw, should I just ping some dev every time I make changes?

@caelunshun caelunshun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Sorry about the delay.

@caelunshun

Copy link
Copy Markdown
Member

Looks like a Clippy error is blocking CI.

@mokurin000 mokurin000 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix clippy warning

let server = Server::bind(options).await?;

let game = init_game(server, config.world)?;
let game = init_game(server, &config)?;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let game = init_game(server, &config)?;

this borrow operator should be removed

@koskja

koskja commented Aug 19, 2021

Copy link
Copy Markdown
Contributor Author

Build passes now

@caelunshun caelunshun merged commit 07c6467 into feather-rs:main Aug 19, 2021
@koskja koskja deleted the develop branch August 20, 2021 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants