mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 01:26:31 +00:00
TextureAtlasEditor - Add error checking when getting color table
This commit is contained in:
@@ -105,7 +105,11 @@ namespace PckStudio.Forms.Editor
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
AcquireColorTable(pckFile);
|
||||
if (!AcquireColorTable(pckFile))
|
||||
{
|
||||
MessageBox.Show("Failed to acquire color information", "Acquire failure", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
|
||||
return;
|
||||
}
|
||||
|
||||
_atlasTexture = atlas;
|
||||
_tileAreaSize = resourceLocation.GetTileArea(atlas.Size);
|
||||
|
||||
Reference in New Issue
Block a user