Changed charToBytes to charsToBytes

This commit is contained in:
Dave
2014-12-26 16:51:26 +02:00
parent 794b55e366
commit 3b97efec74
2 changed files with 3 additions and 2 deletions

View File

@@ -63,7 +63,8 @@ public final class NoCore {
} catch (IOException e) {
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 {

View File

@@ -59,7 +59,7 @@ public final class NoUtil {
return result;
}
public static byte[] charToBytes(char[] array) {
public static byte[] charsToBytes(char[] array) {
byte[] result = new byte[array.length];
for (int x=0; x<array.length; x++) {
result[x] = (byte) array[x];