public ModSource(IModHelper helper)
 {
     this.helper = helper;
     //1.3.28
     //this.TextureData = helper.ReadJsonFile<CustomTextureData>("assets/data.json");
     //1.3.31
     this.TextureData = helper.Data.ReadJsonFile <CustomTextureData>("assets/data.json");
 }
Пример #2
0
 public ContentPackSource(IContentPack pack)
 {
     this.pack        = pack;
     this.TextureData = pack.ReadJsonFile <CustomTextureData>("data.json");
 }