fixed potential NPEs in ItemID, BlockID, and ModulusBlockID