Revert "ImageUtilities.cs: remove back compat thing as no released mod uses it"

This reverts commit 14c03c49b292d95714ab7f0630003f35a189f3c7.
This commit is contained in:
Ben C 2023-05-07 16:24:30 -04:00
parent b1daa02d1f
commit f3fd47dfb7
No known key found for this signature in database
GPG Key ID: 556064B755159BBC

View File

@ -28,6 +28,8 @@ namespace NewHorizons.Utility.Files
return _textureCache.ContainsKey(key);
}
// needed for backwards compat :P
public static Texture2D GetTexture(IModBehaviour mod, string filename, bool useMipmaps, bool wrap) => GetTexture(mod, filename, useMipmaps, wrap, false);
// bug: cache only considers file path, not wrap/mips/linear. oh well
public static Texture2D GetTexture(IModBehaviour mod, string filename, bool useMipmaps = true, bool wrap = false, bool linear = false)
{