Skip to content

Commit 8c6f149

Browse files
committed
small improvement
1 parent 52aa4bf commit 8c6f149

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

src/main/java/com/github/kd_gaming1/scaleme/client/util/HypixelDetector.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,24 +97,10 @@ public static boolean isInDungeon() {
9797
return false;
9898
}
9999

100-
/**
101-
* Debug helper for printing character code points.
102-
* Only enable this when diagnosing scoreboard parsing issues.
103-
*/
104-
@SuppressWarnings("unused")
105-
private static void printCodePoints(String name, String s) {
106-
StringBuilder out = new StringBuilder();
107-
out.append(name).append(": ");
108-
for (int i = 0; i < s.length(); i++) {
109-
out.append(String.format("[%c U+%04X] ", s.charAt(i), (int) s.charAt(i)));
110-
}
111-
System.out.println(out);
112-
}
113-
114100
/**
115101
* Strips Minecraft formatting codes (§ followed by any character).
116102
*/
117103
private static String stripColors(String text) {
118104
return text.replaceAll("§.", "");
119105
}
120-
}
106+
}

src/main/java/com/github/kd_gaming1/scaleme/client/util/ScaleManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ public static float getCurrentScale(UUID playerUUID) {
3434
/** Returns NPC scale with safety check including dungeons detection. */
3535
public static float getNpcScale() {
3636
// Only apply scaling when it's safe (not in competitive modes or dungeons)
37-
if (HypixelDetector.isSafeGameMode() || HypixelDetector.isSafeForNPCScaling()) return 1.0f;
37+
if (HypixelDetector.isSafeForNPCScaling()) return 1.0f;
3838
return ScaleMeConfig.npcPlayerScale;
3939
}
4040

4141
/** Returns Villager NPC scale with safety check including dungeons detection. */
4242
public static float getVillagerNpcScale() {
4343
// Only apply scaling when it's safe (not in competitive modes or dungeons)
44-
if (HypixelDetector.isSafeGameMode() || HypixelDetector.isSafeForNPCScaling()) return 1.0f;
44+
if (HypixelDetector.isSafeForNPCScaling()) return 1.0f;
4545
return ScaleMeConfig.villagerNpcScale;
4646
}
4747
}

0 commit comments

Comments
 (0)