Skip to content

Commit

Permalink
Disable faulty sanity check in ApplyBasicGraphicsMod.csx
Browse files Browse the repository at this point in the history
Disable faulty sanity check in ApplyBasicGraphicsMod.csx
  • Loading branch information
Grossley committed Jun 19, 2023
1 parent 35eb010 commit fa327ab
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ foreach (string file in dirFiles)
using (Image img = Image.FromFile(file))
{
if ((Data.Sprites.ByName(spriteName).Width != (uint)img.Width) || (Data.Sprites.ByName(spriteName).Height != (uint)img.Height))
throw new ScriptException(FileNameWithExtension + " is not the proper size to be imported! Please correct this before importing! The proper dimensions are width: " + Data.Sprites.ByName(spriteName).Width.ToString() + " px, height: " + Data.Sprites.ByName(spriteName).Height.ToString() + " px.");
{
// This check isn't working right
// throw new ScriptException(FileNameWithExtension + " is not the proper size to be imported! Please correct this before importing! The proper dimensions are width: " + Data.Sprites.ByName(spriteName).Width.ToString() + " px, height: " + Data.Sprites.ByName(spriteName).Height.ToString() + " px.");
}
}

Int32 validFrameNumber = 0;
Expand Down

0 comments on commit fa327ab

Please sign in to comment.