From 1df29b345f9cb229e94bc54bc86000ca135a5239 Mon Sep 17 00:00:00 2001 From: Moulberry Date: Fri, 16 Aug 2024 03:42:14 +0800 Subject: [PATCH] Add proxy conversions for 1.20.6 & 1.21.1 --- .../com/moulberry/axiom/packet/HelloPacketListener.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/moulberry/axiom/packet/HelloPacketListener.java b/src/main/java/com/moulberry/axiom/packet/HelloPacketListener.java index 8a9c254..6461d2a 100644 --- a/src/main/java/com/moulberry/axiom/packet/HelloPacketListener.java +++ b/src/main/java/com/moulberry/axiom/packet/HelloPacketListener.java @@ -97,8 +97,10 @@ public class HelloPacketListener implements PluginMessageListener { playerVersion = 764; // 1.20.2 } else if (dataVersion <= 3700) { playerVersion = 765; // 1.20.3 / 1.20.4 - } else if (dataVersion <= 3837) { - playerVersion = 766; // 1.20.3 / 1.20.4 + } else if (dataVersion <= 3839) { + playerVersion = 766; // 1.20.5 / 1.20.6 + } else if (dataVersion <= 3955) { + playerVersion = 767; // 1.21.1 } else { player.sendMessage(incompatibleWarning.color(NamedTextColor.RED)); return;