Merge pull request #19 from DerFlash/testsFix

Stay backwards compatible to Java 6 in test classes
This commit is contained in:
Kristian S. Stangeland 2013-12-06 11:16:46 -08:00
commit 2a0e782725

View File

@ -70,7 +70,7 @@ public class SimpleMinecraftClient {
// For 1.6
if (version.compareTo(new MinecraftVersion(PLUGIN_MESSAGE_VERSION)) >= 0) {
DataOutputStream data = new DataOutputStream(output);
String host = address.getHostString();
String host = address.getHostName();
data.writeByte(0xFA);
writeString(data, "MC|PingHost");