diff options
author | syeyoung <cyong06@naver.com> | 2021-08-09 00:59:20 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-08-09 00:59:20 +0900 |
commit | e2fb6d14de683c06325b1667df3370839cb3815d (patch) | |
tree | a2db8fa701964ec4e801a0deadef0aa94a1d4ad5 /src/main/java/kr/syeyoung/dungeonsguide/gamesdk | |
parent | fe40f939fbc997c0b5cd7dedb9d1cb83faa398d1 (diff) | |
download | Skyblock-Dungeons-Guide-e2fb6d14de683c06325b1667df3370839cb3815d.tar.gz Skyblock-Dungeons-Guide-e2fb6d14de683c06325b1667df3370839cb3815d.tar.bz2 Skyblock-Dungeons-Guide-e2fb6d14de683c06325b1667df3370839cb3815d.zip |
- Party Invite Viewer now scales pfp correctly, and supports invite to join
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/gamesdk')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/gamesdk/GameSDK.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/GameSDK.java b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/GameSDK.java index 0f591f22..ee4dd1f8 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/GameSDK.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gamesdk/GameSDK.java @@ -83,11 +83,12 @@ public class GameSDK { public static void writeString(byte[] bts, String str) { System.arraycopy(str.getBytes(), 0, bts, 0, str.getBytes().length); + bts[str.getBytes().length] = 0; } public static String readString(byte[] bts) { int i; for (i = 0; i < bts.length && bts[i] != 0; i++); - byte[] asdasd = new byte[i+1]; + byte[] asdasd = new byte[i]; System.arraycopy(bts, 0, asdasd, 0, i); return new String(asdasd); } |