Skip to content

Commit

Permalink
Lets hope this finally fixes the strangeness, attempt 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Mar 5, 2016
1 parent 3aa50e2 commit 95814d9
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -18,6 +18,7 @@

package net.doubledoordev.backend.server.query;

import com.google.common.base.Charsets;
import net.doubledoordev.backend.Main;
import net.doubledoordev.backend.util.exceptions.ServerOfflineException;

Expand Down Expand Up @@ -60,7 +61,7 @@ private void handshake() throws ServerOfflineException
byte[] input = ByteUtils.padArrayEnd(req.toBytes(), val);
byte[] result = sendUDP(input);

token = Integer.parseInt(new String(result).trim());
token = Integer.parseInt(new String(result, Charsets.ISO_8859_1).trim());
}

/**
Expand Down

0 comments on commit 95814d9

Please sign in to comment.