windows compatibility fixes v3

This commit is contained in:
2024-06-30 06:55:29 -05:00
parent 9a267e4f8d
commit d57f183785
2 changed files with 3 additions and 3 deletions

View File

@@ -244,7 +244,7 @@ public class MissPiggy implements ActionListener {
System.out.println("Initializing blacklist from file with length of " + bListArray.length + " units"); //debug
for (String s : bListArray) {
for (Main.Mod m : Main.Mods) {
if (s.equals(m.path)) {
if (s.trim().equals(m.path.trim())) {
m.enabled = false;
}
}
@@ -474,7 +474,7 @@ public class MissPiggy implements ActionListener {
try { //debug
File pathReference = new File(System.getProperty("user.home") + "/.firestar/mods/" + Main.Mods.get(modList.getSelectedIndex()).path);
File pathReference = new File(System.getProperty("user.home") + "/.firestar/mods/" + Main.Mods.get(modList.getSelectedIndex()).path.trim());
DecimalFormat df = new DecimalFormat("##.##");
df.setRoundingMode(RoundingMode.UP);
float modFileSize = pathReference.length(); //precise units