From 9d469824fa52ac5e895118f4de4d116e6fdb5008 Mon Sep 17 00:00:00 2001 From: Moulberry Date: Sat, 17 Feb 2024 04:38:47 +0800 Subject: [PATCH] Fix protocol read issue when line_thickness is present while line_argb is not --- src/main/java/com/moulberry/axiom/marker/MarkerData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/moulberry/axiom/marker/MarkerData.java b/src/main/java/com/moulberry/axiom/marker/MarkerData.java index 8ff57b2..93d8db6 100644 --- a/src/main/java/com/moulberry/axiom/marker/MarkerData.java +++ b/src/main/java/com/moulberry/axiom/marker/MarkerData.java @@ -75,7 +75,7 @@ public record MarkerData(UUID uuid, Vec3 position, @Nullable String name, @Nulla friendlyByteBuf.writeInt(markerData.lineArgb); } - if (markerData.lineArgb != 0) { + if (markerData.lineThickness != 0) { friendlyByteBuf.writeFloat(markerData.lineThickness); }