From dfc57ace4dae70dab22c15abf268b40735dd1a02 Mon Sep 17 00:00:00 2001 From: tplansky Date: Sat, 18 May 2024 23:29:05 +0200 Subject: [PATCH] Fix backwards compatibility for 1.17-1.20.2 --- .../eu/decentsoftware/holograms/api/nms/versions/NMS_1_17.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/decentsoftware/holograms/api/nms/versions/NMS_1_17.java b/src/main/java/eu/decentsoftware/holograms/api/nms/versions/NMS_1_17.java index b2f7eb04..2afa792f 100644 --- a/src/main/java/eu/decentsoftware/holograms/api/nms/versions/NMS_1_17.java +++ b/src/main/java/eu/decentsoftware/holograms/api/nms/versions/NMS_1_17.java @@ -422,7 +422,7 @@ private void sendEntityMetadata(Player player, int entityId, List items) if (Version.afterOrEqual(Version.v1_20_R4)) { Object codec = DWS_GET_CODEC_METHOD.invoke(serializer); CODEC_ENCODE_METHOD.invoke(codec, packetDataSerializer, value); - } else if (Version.afterOrEqual(Version.v1_20_R3)) { + } else { DWS_SERIALIZE_METHOD.invoke(serializer, packetDataSerializer, value); } }