cargo fmt
This commit is contained in:
1 parent
5f8cbdbba6
commit
6485c99167
9 files changed
+36
-32
No files matched your search
@@ -1,17 +1,15 @@
|
||||
use super::Command;
|
||||
|
||||
pub struct StopCommand {
|
||||
|
||||
}
|
||||
pub struct StopCommand {}
|
||||
|
||||
impl<'a> Command<'a> for StopCommand {
|
||||
const NAME: &'static str = "stop";
|
||||
const DESCRIPTION: &'static str = "Stops the server";
|
||||
|
||||
|
||||
fn on_execute(sender: &mut super::CommandSender<'a>, command: String) {
|
||||
std::process::exit(0);
|
||||
}
|
||||
fn player_required() -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -347,7 +347,7 @@ impl Server {
|
||||
chunk_x: 0.into(),
|
||||
chunk_z: 0.into(),
|
||||
});
|
||||
|
||||
|
||||
while let Some((chunk_pos, chunk_data)) = chunk_receiver.recv().await {
|
||||
// dbg!(chunk_pos);
|
||||
let chunk_data = match chunk_data {
|
||||
|
||||
Reference in new issue
Block a user