From 7e85e2cf78fc93d4bfccde86f7217c87a9c1aabe 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); }