Don't remember blacklisted files after deleting them

This commit is contained in:
Downforce Agent 2024-06-30 17:56:30 -05:00
parent 213b8227e1
commit 13878c3c74

View File

@ -436,6 +436,7 @@ public class MissPiggy implements ActionListener {
file.delete(); file.delete();
System.out.println("Deleted " + Main.Mods.get(modList.getSelectedIndex()).friendlyName); //debug System.out.println("Deleted " + Main.Mods.get(modList.getSelectedIndex()).friendlyName); //debug
Main.Mods.remove(modList.getSelectedIndex()); Main.Mods.remove(modList.getSelectedIndex());
regenerateModBlacklist(false);
regenerateModIndex(true); regenerateModIndex(true);
} else { } else {
JOptionPane.showMessageDialog(frame, "Please select a mod to delete first.", "Error", JOptionPane.ERROR_MESSAGE); JOptionPane.showMessageDialog(frame, "Please select a mod to delete first.", "Error", JOptionPane.ERROR_MESSAGE);