2013-09-20 00:34:41 +02:00
|
|
|
From cbcb581dd09d719f3c1dd95f504b201e791371d3 Mon Sep 17 00:00:00 2001
|
2013-09-20 00:26:07 +02:00
|
|
|
From: md_5 <md_5@live.com.au>
|
|
|
|
Date: Fri, 20 Sep 2013 08:25:33 +1000
|
|
|
|
Subject: [PATCH] Minecraft 1.6.4
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
index d186e47..d6aa785 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
@@ -762,7 +762,7 @@ public abstract class MinecraftServer implements ICommandListener, Runnable, IMo
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getVersion() {
|
|
|
|
- return "1.6.2";
|
|
|
|
+ return "1.6.4";
|
|
|
|
}
|
|
|
|
|
|
|
|
public int A() {
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PendingConnection.java b/src/main/java/net/minecraft/server/PendingConnection.java
|
2013-09-20 00:34:41 +02:00
|
|
|
index a5c3104..e9e9e5c 100644
|
2013-09-20 00:26:07 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/PendingConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PendingConnection.java
|
|
|
|
@@ -80,8 +80,8 @@ public class PendingConnection extends Connection {
|
|
|
|
} else {
|
|
|
|
PublicKey publickey = this.server.H().getPublic();
|
|
|
|
|
|
|
|
- if (packet2handshake.d() != 74) {
|
|
|
|
- if (packet2handshake.d() > 74) {
|
2013-09-20 00:34:41 +02:00
|
|
|
+ if (packet2handshake.d() != 78) {
|
2013-09-20 00:26:07 +02:00
|
|
|
+ if (packet2handshake.d() > 78) {
|
|
|
|
this.disconnect(org.spigotmc.SpigotConfig.outdatedServerMessage); // Spigot
|
|
|
|
} else {
|
|
|
|
this.disconnect(org.spigotmc.SpigotConfig.outdatedClientMessage); // Spigot
|
|
|
|
@@ -160,7 +160,7 @@ public class PendingConnection extends Connection {
|
|
|
|
s = pingEvent.getMotd() + "\u00A7" + playerlist.getPlayerCount() + "\u00A7" + pingEvent.getMaxPlayers();
|
|
|
|
} else {
|
|
|
|
// CraftBukkit start - Don't create a list from an array
|
|
|
|
- Object[] list = new Object[] { 1, 74, this.server.getVersion(), pingEvent.getMotd(), playerlist.getPlayerCount(), pingEvent.getMaxPlayers() };
|
|
|
|
+ Object[] list = new Object[] { 1, 78, this.server.getVersion(), pingEvent.getMotd(), playerlist.getPlayerCount(), pingEvent.getMaxPlayers() };
|
|
|
|
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
|
|
for (Object object : list) {
|
|
|
|
--
|
|
|
|
1.8.1.2
|
|
|
|
|