aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-31 18:35:04 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-31 18:35:04 +0200
commita971fa15b4d88fa9385042afba8f0c783d472157 (patch)
treec8cbe3f38eb321f2f2563558e58b055fe307d646 /src/main/java/cc/polyfrost
parentcefa8b73541a129f590816a0a28af8ed8422d463 (diff)
downloadOneConfig-a971fa15b4d88fa9385042afba8f0c783d472157.tar.gz
OneConfig-a971fa15b4d88fa9385042afba8f0c783d472157.tar.bz2
OneConfig-a971fa15b4d88fa9385042afba8f0c783d472157.zip
more sidebar
Diffstat (limited to 'src/main/java/cc/polyfrost')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java4
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java1
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/utils/ColorUtils.java1
3 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java b/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java
index 9ab6f68..dfc5e16 100644
--- a/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java
+++ b/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java
@@ -43,9 +43,7 @@ public class Profiles {
}
public static File getProfileDir(String profile) {
- File folder = new File("OneConfig/profiles");
- folder.mkdirs();
- return new File(folder, profile);
+ return new File(new File("OneConfig/profiles"), profile);
}
public static File getProfileFile(String file) {
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java b/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
index 2c2abd8..c9699f7 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
@@ -45,6 +45,7 @@ public class SideBar {
buttons.get(3).draw(vg, x + 16, y + 228);
buttons.get(4).draw(vg, x + 16, y + 264);
buttons.get(5).draw(vg, x + 16, y + 300);
+ RenderManager.drawText(vg, "PERSONALIZATION", x + 16, y + 362, OneConfigConfig.WHITE, 12, Fonts.SEMIBOLD);
buttons.get(6).draw(vg, x + 16, y + 376);
buttons.get(7).draw(vg, x + 16, y + 412);
buttons.get(8).draw(vg, x + 16, y + 448);
diff --git a/src/main/java/cc/polyfrost/oneconfig/utils/ColorUtils.java b/src/main/java/cc/polyfrost/oneconfig/utils/ColorUtils.java
index b980642..127b200 100644
--- a/src/main/java/cc/polyfrost/oneconfig/utils/ColorUtils.java
+++ b/src/main/java/cc/polyfrost/oneconfig/utils/ColorUtils.java
@@ -120,7 +120,6 @@ public final class ColorUtils {
}
private static float smooth(float current, float min, float max, boolean moveToFinal, float speed) {
- if(min > max) System.out.println(min * 255 + " " + max * 255);
current = MathUtils.easeOut(current, moveToFinal ? max : min, speed);
if (current < min) {
current = min;