public void Edit <T>(IAssetData asset) { Texture2D customTexture = this.Helper.Content.Load <Texture2D>("assets/BlankPixel.png", ContentSource.ModFolder); Texture2D bloodMoonTexture = this.Helper.Content.Load <Texture2D>("assets/DaytimeBloodMoon.png", ContentSource.ModFolder); asset .AsImage() .PatchImage(customTexture, targetArea: new Rectangle(643, 833, 41, 45)); if (OurMoon.CurrentPhase() == MoonPhase.BloodMoon) { asset.AsImage().PatchImage(bloodMoonTexture, targetArea: new Rectangle(342, 440, 7, 7)); } }