@@ -19,28 +19,28 @@ public BedrockPublisher(
1919 Mapping = new JavaToBedrockPublishMapping ( ) ;
2020 }
2121
22- protected override async Task PublishPackMetaAsync ( PublishProfileProperties pack , CancellationToken token )
22+ protected override async Task PublishPackMetaAsync ( ProjectPublishContext context , CancellationToken token )
2323 {
2424 var packMeta = new BedrockPackMetadata {
25- FormatVersion = pack . Format ?? PublishProfileProperties . DefaultBedrockFormat ,
25+ FormatVersion = context . Profile ? . Format ?? PublishProfileProperties . DefaultBedrockFormat ,
2626 Header = {
27- Name = pack . Name ,
28- Description = pack . Description ,
29- UniqueId = pack . HeaderUuid ,
27+ Name = context . Profile ? . Name ?? context . Project ? . Name ,
28+ Description = context . Profile ? . Description ?? context . Project ? . Description ,
29+ UniqueId = context . Profile ? . HeaderUuid ,
3030 Version = [ 1 , 0 , 0 ] ,
3131 MinEngineVersion = [ 1 , 16 , 0 ] ,
3232 } ,
3333 Modules = {
3434 new BedrockPackModuleMetadata {
35- UniqueId = pack . ModuleUuid ,
36- Description = pack . Description ,
35+ UniqueId = context . Profile ? . ModuleUuid ,
36+ Description = context . Profile ? . Description ,
3737 Type = "resources" ,
3838 Version = [ 1 , 0 , 0 ] ,
3939 } ,
4040 } ,
4141 } ;
4242
43- var isRtx = TextureFormat . Is ( pack . Encoding ? . Format , TextureFormat . Format_Rtx ) ;
43+ var isRtx = TextureFormat . Is ( context . Profile ? . Encoding ? . Format , TextureFormat . Format_Rtx ) ;
4444 if ( isRtx ) packMeta . Capabilities . Add ( "raytraced" ) ;
4545
4646 await Writer . OpenWriteAsync ( "manifest.json" , async stream => {
0 commit comments