Skip to content

Commit

Permalink
Only checks for inferior filtering methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Toxic-Cookie committed Oct 13, 2023
1 parent d7b3fe3 commit 10d6a4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DefaultToAnisotropic/DefaultToAnisotropic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

[assembly: AssemblyTitle("DefaultToAnisotropic")]
[assembly: AssemblyProduct("DefaultToAnisotropic")]
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
[assembly: AssemblyVersion("1.3.0.1")]
[assembly: AssemblyFileVersion("1.3.0.1")]

class DefaultToAnisotropic : ResoniteMod
{
public override string Name => "DefaultToAnisotropic";
public override string Author => "Toxic_Cookie, eia485";
public override string Version => "1.3.0";
public override string Version => "1.3.1";
public override string Link => "https://github.com/Toxic-Cookie/DefaultToAnisotropic";

// configurations for StaticTextureProvider<Texture2D, Bitmap2D, BitmapMetadata, Texture2DVariantDescriptor>
Expand Down Expand Up @@ -50,7 +50,7 @@ private static class Patch
{
private static void Postfix(IAssetProvider<Texture2D> texture)
{
if (texture is StaticTexture2D textureprovider)
if (texture is StaticTexture2D textureprovider && textureprovider.FilterMode.Value != TextureFilterMode.Point)
{
ApplySetting(FilterMode, textureprovider.FilterMode);
ApplySetting(AnisotropicLevel, textureprovider.AnisotropicLevel);
Expand Down

0 comments on commit 10d6a4a

Please sign in to comment.