mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-24 11:36:51 +01:00
Merge pull request #19 from DerFlash/testsFix
Stay backwards compatible to Java 6 in test classes
This commit is contained in:
commit
2a0e782725
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user