Update to Minecraft 1.9.2

This commit is contained in:
Thinkofname
2016-03-30 20:50:59 +01:00
parent 7fc5cd856e
commit 6e527e5b88
30 changed files with 126 additions and 182 deletions

View File

@@ -109,8 +109,8 @@
+ int version = minecraftServer.getServerPing().getServerData().getProtocolVersion();
+ if (this.networkManager.channel.pipeline().get(PacketEncoder.class).version == 108) {
+ version = 108;
+ } else if (this.networkManager.channel.pipeline().get(PacketEncoder.class).version == 109) {
+ version = 109;
+ } else if (this.networkManager.channel.pipeline().get(PacketEncoder.class).version == 107) {
+ version = 107;
+ }
+ ping.setServerInfo(new ServerPing.ServerData(minecraftServer.getServerModName() + " " + minecraftServer.getVersion(), version));
+