mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 01:06:35 +00:00
MainForm - Fix animation file name when creating a new one
This commit is contained in:
@@ -1084,11 +1084,11 @@ namespace PckStudio
|
||||
if (diag.ShowDialog(this) != DialogResult.OK)
|
||||
return;
|
||||
|
||||
string animationFilepath = $"{ResourceLocation.GetPathFromCategory(diag.Category)}/{diag.SelectedTile}.png";
|
||||
string animationFilepath = $"{ResourceLocation.GetPathFromCategory(diag.Category)}/{diag.SelectedTile.InternalName}.png";
|
||||
|
||||
if (currentPCK.Contains(animationFilepath, PckAssetType.TextureFile))
|
||||
{
|
||||
MessageBox.Show(this, $"{diag.SelectedTile} is already present.", "File already present");
|
||||
MessageBox.Show(this, $"{diag.SelectedTile.DisplayName} is already present.", "File already present");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user