mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-31 12:23:51 -07:00
Support Minecraft 1.9.2
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
public class PacketStatusListener implements PacketStatusInListener {
|
||||
|
||||
private static final IChatBaseComponent a = new ChatComponentText("Status request has been handled.");
|
||||
@@ -19,8 +30,99 @@
|
||||
@@ -19,8 +30,101 @@
|
||||
this.networkManager.close(PacketStatusListener.a);
|
||||
} else {
|
||||
this.d = true;
|
||||
@@ -109,6 +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;
|
||||
+ }
|
||||
+ ping.setServerInfo(new ServerPing.ServerData(minecraftServer.getServerModName() + " " + minecraftServer.getVersion(), version));
|
||||
+
|
||||
|
Reference in New Issue
Block a user