Changed charToBytes to charsToBytes
This commit is contained in:
@@ -63,7 +63,8 @@ public final class NoCore {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
newConfig.construct();
|
newConfig.construct();
|
||||||
}
|
}
|
||||||
NoCore.setup(newConfig, new NoHashSphereDefault());
|
NoCore.setup(newConfig);
|
||||||
|
NoCore.setup(new NoHashSphereDefault());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static byte[] login(byte[] data, char[] password) throws NoUserNotValidException, NoUserAlreadyOnlineException, NoSessionExpiredException {
|
public static byte[] login(byte[] data, char[] password) throws NoUserNotValidException, NoUserAlreadyOnlineException, NoSessionExpiredException {
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public final class NoUtil {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static byte[] charToBytes(char[] array) {
|
public static byte[] charsToBytes(char[] array) {
|
||||||
byte[] result = new byte[array.length];
|
byte[] result = new byte[array.length];
|
||||||
for (int x=0; x<array.length; x++) {
|
for (int x=0; x<array.length; x++) {
|
||||||
result[x] = (byte) array[x];
|
result[x] = (byte) array[x];
|
||||||
|
|||||||
Reference in New Issue
Block a user