3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-17 01:23:43 +02:00

Make compatible with ServerListPlus custom outdated message. Fix #227

Dieser Commit ist enthalten in:
Mats 2016-03-15 14:14:10 +01:00
Ursprung 7cfba0b602
Commit daed15d61f

Datei anzeigen

@ -299,7 +299,8 @@ public class OutgoingTransformer {
try {
JSONObject json = (JSONObject) new JSONParser().parse(originalStatus);
JSONObject version = (JSONObject) json.get("version");
version.put("protocol", info.getProtocol());
if ((long) version.get("protocol") != 9999) //Fix ServerListPlus custom outdated message
version.put("protocol", info.getProtocol());
PacketUtil.writeString(json.toJSONString(), output);
} catch (ParseException e) {
e.printStackTrace();