diff --git a/Warcraft.NET/Files/ADT/Entries/MoP/MTXPEntry.cs b/Warcraft.NET/Files/ADT/Entries/MoP/MTXPEntry.cs index b5d10a8..7de7dc7 100644 --- a/Warcraft.NET/Files/ADT/Entries/MoP/MTXPEntry.cs +++ b/Warcraft.NET/Files/ADT/Entries/MoP/MTXPEntry.cs @@ -140,14 +140,14 @@ protected void WriteMTXPFlags(BinaryWriter bw) flagBits.Set(0, DontLoadSpecularOrHeightTexture); #region Unknown1 - BitArray unknown1Bits = new BitArray(BitConverter.GetBytes(Unknown1)); + BitArray unknown1Bits = new BitArray(BitConverter.GetBytes((short)Unknown1)); flagBits.Set(1, unknown1Bits[0]); flagBits.Set(2, unknown1Bits[1]); flagBits.Set(3, unknown1Bits[2]); #endregion #region TextureScale - BitArray textureScaleBits = new BitArray(BitConverter.GetBytes(TextureScale)); + BitArray textureScaleBits = new BitArray(BitConverter.GetBytes((short)TextureScale)); flagBits.Set(4, textureScaleBits[0]); flagBits.Set(5, textureScaleBits[1]); flagBits.Set(6, textureScaleBits[2]); diff --git a/Warcraft.NET/Warcraft.NET.csproj b/Warcraft.NET/Warcraft.NET.csproj index 321c0ba..5e12197 100644 --- a/Warcraft.NET/Warcraft.NET.csproj +++ b/Warcraft.NET/Warcraft.NET.csproj @@ -1,7 +1,7 @@  - netstandard2.0 + netstandard2.0;net6.0;net7.0;net8.0 default Warcraft.NET 1.0.1