Forgot to replace some logging

This commit is contained in:
AxolotlMaid 2024-05-29 00:09:35 +01:00
parent a4ab0aa35a
commit 1e1b19890a
3 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,6 @@
package com.axolotlmaid.optionsprofiles.gui;
import com.axolotlmaid.optionsprofiles.OptionsProfilesMod;
import com.axolotlmaid.optionsprofiles.profiles.Profiles;
import com.google.common.collect.ImmutableList;
import net.minecraft.client.Minecraft;
@ -38,8 +39,7 @@ public class ProfilesList extends ContainerObjectSelectionList<ProfilesList.Entr
this.addEntry(new ProfilesList.ProfileEntry(Component.literal(profile.getFileName().toString())));
}
} catch (Exception e) {
System.out.println("An error occurred when listing profiles.");
e.printStackTrace();
OptionsProfilesMod.LOGGER.error("An error occurred when listing profiles", e);
}
}

View file

@ -115,7 +115,7 @@ public class Profiles {
return linesOptions.equals(linesProfileOptions);
} catch (IOException e) {
e.printStackTrace();
OptionsProfilesMod.LOGGER.error("An error occurred when checking if a profile is loaded", e);
}
return false;

View file

@ -1,5 +1,6 @@
package com.axolotlmaid.optionsprofiles.profiles;
import com.axolotlmaid.optionsprofiles.OptionsProfilesMod;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import me.jellysquid.mods.sodium.client.SodiumClientMod;
@ -17,7 +18,7 @@ public class SodiumConfigLoader {
apply(configData);
} catch (IOException e) {
e.printStackTrace();
OptionsProfilesMod.LOGGER.error("An error occurred when loading Sodium's configuration", e);
}
}
@ -44,7 +45,7 @@ public class SodiumConfigLoader {
try {
SodiumGameOptions.writeToDisk(SodiumClientMod.options());
} catch (IOException e) {
e.printStackTrace();
OptionsProfilesMod.LOGGER.error("An error occurred when loading Sodium's configuration", e);
}
}