Remove unnecessary logs and loading
- Load chunk (0,0) only in debug mode. This prevents crashes when the chunk for (0,0) does not exist, since this is only used for checking the size of the chunk packet. - Remove log: `Getting chunks x, from region file y`
This commit is contained in:
1 parent
b68e9b809f
commit
59749af69c
2 files changed
+1
-5
No files matched your search
@@ -351,6 +351,7 @@ impl Server {
|
||||
});
|
||||
|
||||
chunks.iter().for_each(|chunk| {
|
||||
#[cfg(debug_assertions)]
|
||||
if chunk.0 == (0, 0) {
|
||||
let mut test = ByteBuffer::empty();
|
||||
CChunkData(chunk.1.as_ref().unwrap()).write(&mut test);
|
||||
|
||||
Reference in new issue
Block a user