From 5a59cc36e3c6e9a3e50cc5a5e618ac28cecbbaf1 Mon Sep 17 00:00:00 2001 From: MattNL Date: Sat, 5 Feb 2022 15:59:53 -0500 Subject: [PATCH] Fixed an Audio Editor bug In the remove category function, I forgot to remove the MineFile from the PCK file --- MinecraftUSkinEditor/Forms/Utilities/AudioEditor.cs | 1 + MinecraftUSkinEditor/PckStudio.csproj | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/MinecraftUSkinEditor/Forms/Utilities/AudioEditor.cs b/MinecraftUSkinEditor/Forms/Utilities/AudioEditor.cs index d79e5817..35d786bf 100644 --- a/MinecraftUSkinEditor/Forms/Utilities/AudioEditor.cs +++ b/MinecraftUSkinEditor/Forms/Utilities/AudioEditor.cs @@ -175,6 +175,7 @@ namespace PckStudio.Forms.Utilities private void removeCategoryStripMenuItem_Click(object sender, EventArgs e) { cats.Remove(getCatID(treeView1.SelectedNode.Text)); + audioPCK.mineFiles.Remove((PCK.MineFile)treeView1.SelectedNode.Tag); treeView1.SelectedNode.Remove(); } diff --git a/MinecraftUSkinEditor/PckStudio.csproj b/MinecraftUSkinEditor/PckStudio.csproj index cdf4f393..23b2cbc8 100644 --- a/MinecraftUSkinEditor/PckStudio.csproj +++ b/MinecraftUSkinEditor/PckStudio.csproj @@ -705,15 +705,9 @@ addAnimatedTexture.cs - - rename.cs - rename.cs - - addCategory.cs - addCategory.cs