Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 17:20:24 +01:00
Merge pull request #228 from Matsv/slp
Make compatible with ServerListPlus custom outdated message. Fix #227
Dieser Commit ist enthalten in:
Commit
722f28f086
@ -299,7 +299,8 @@ public class OutgoingTransformer {
|
|||||||
try {
|
try {
|
||||||
JSONObject json = (JSONObject) new JSONParser().parse(originalStatus);
|
JSONObject json = (JSONObject) new JSONParser().parse(originalStatus);
|
||||||
JSONObject version = (JSONObject) json.get("version");
|
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);
|
PacketUtil.writeString(json.toJSONString(), output);
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren