server: add debug logging in chunk format data structure decoding
This commit is contained in:
parent
2a7980db28
commit
851622b781
|
@ -1970,6 +1970,7 @@ impl Server {
|
||||||
&mut self,
|
&mut self,
|
||||||
chunk_data: packet::play::clientbound::ChunkData_AndLight,
|
chunk_data: packet::play::clientbound::ChunkData_AndLight,
|
||||||
) {
|
) {
|
||||||
|
println!("on_chunk_data_and_light chunk_data = {:?}", chunk_data);
|
||||||
self.world
|
self.world
|
||||||
.load_chunk117(
|
.load_chunk117(
|
||||||
chunk_data.chunk_x,
|
chunk_data.chunk_x,
|
||||||
|
|
|
@ -1020,6 +1020,8 @@ impl World {
|
||||||
use byteorder::ReadBytesExt;
|
use byteorder::ReadBytesExt;
|
||||||
use std::io::Cursor;
|
use std::io::Cursor;
|
||||||
|
|
||||||
|
println!("load_chunk19_to_117 x={:?} z={:?}, new={:?} mask={:?} num_sections={:?} data={:?}", x,z,new,mask,num_sections,data);
|
||||||
|
|
||||||
let mut data = Cursor::new(data);
|
let mut data = Cursor::new(data);
|
||||||
|
|
||||||
let cpos = CPos(x, z);
|
let cpos = CPos(x, z);
|
||||||
|
@ -1047,10 +1049,12 @@ impl World {
|
||||||
|
|
||||||
if self.protocol_version >= 451 {
|
if self.protocol_version >= 451 {
|
||||||
let _block_count = data.read_u16::<byteorder::LittleEndian>()?;
|
let _block_count = data.read_u16::<byteorder::LittleEndian>()?;
|
||||||
|
println!("_block_count = {:?}", _block_count);
|
||||||
// TODO: use block_count
|
// TODO: use block_count
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut bit_size = data.read_u8()?;
|
let mut bit_size = data.read_u8()?;
|
||||||
|
println!("bit_size = {:?}", bit_size);
|
||||||
let mut mappings: HashMap<usize, block::Block, BuildHasherDefault<FNVHash>> =
|
let mut mappings: HashMap<usize, block::Block, BuildHasherDefault<FNVHash>> =
|
||||||
HashMap::with_hasher(BuildHasherDefault::default());
|
HashMap::with_hasher(BuildHasherDefault::default());
|
||||||
if bit_size == 0 {
|
if bit_size == 0 {
|
||||||
|
|
Loading…
Reference in New Issue