Fix nutexb padding for smaller images

This commit is contained in:
KillzXGaming 2020-04-09 16:44:22 -04:00
parent 5c68d2d14a
commit c035b7e9c2

View file

@ -277,7 +277,7 @@ namespace FirstPlugin
if (LimitFileSize)
{
if (surfaces[0].mipmaps[0].Length > surfacesNew[0].mipmaps[0].Length)
if (surfaces[0].mipmaps[0].Length < surfacesNew[0].mipmaps[0].Length)
{
if (surfaces[0].mipmaps[0].Length != surfacesNew[0].mipmaps[0].Length)
throw new Exception($"Image must be the same size! {surfaces[0].mipmaps[0].Length}");