fix 1-indexed block id

This commit is contained in:
Quaternions 2024-12-30 23:12:05 -08:00
parent 083a735d85
commit 43ee18a2ca

View File

@ -285,7 +285,7 @@ impl std::error::Error for Error{}
#[binrw]
#[brw(little)]
#[derive(Debug,Clone,Copy)]
pub struct BlockId(u32);
pub struct BlockId(#[br(map=|i:u32|i-1)]u32);
#[binrw]
#[brw(little)]