Coding Help Pytk Error Message I Can't Get Rid Of

AlmostMidnight

Greenhorn
I'm trying to scale up some portraits but I keep getting this error message. Anyone know why?
System.InvalidCastException: Can't replace loaded asset of type PyTK.Types.ScaledTexture2D with value of type PyTK.Types.MappedTexture2D. The new type must be compatible to prevent game errors.
at StardewModdingAPI.Framework.Content.AssetData`1.ReplaceWith(TValue value) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\Content\AssetData.cs:line 45
at PyTK.PyTKMod.PatchImage(IAssetDataForImage __instance, Texture2D& source, Nullable`1& sourceArea, Nullable`1 targetArea, PatchMode patchMode)
at StardewModdingAPI.Framework.Content.AssetDataForImage.PatchImage_PatchedBy<Platonymous.PyTK>(AssetDataForImage this, Texture2D source, Nullable`1 sourceArea, Nullable`1 targetArea, PatchMode patchMode)
at ContentPatcher.Framework.Patches.EditImagePatch.Edit[T](IAssetData asset) in C:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\Patches\EditImagePatch.cs:line 134
at ContentPatcher.Framework.PatchManager.Edit[T](IAssetData asset) in C:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\PatchManager.cs:line 178
 
Top