From 7985b39ed563153103584f770f7252b0c10f3eb6 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 29 Oct 2024 13:32:54 +0100 Subject: [PATCH] Fix trail particle reading --- .../viaversion/api/type/types/misc/ParticleType.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/com/viaversion/viaversion/api/type/types/misc/ParticleType.java b/api/src/main/java/com/viaversion/viaversion/api/type/types/misc/ParticleType.java index 79e6e97d1..f74b361dc 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/type/types/misc/ParticleType.java +++ b/api/src/main/java/com/viaversion/viaversion/api/type/types/misc/ParticleType.java @@ -149,9 +149,9 @@ public class ParticleType extends DynamicType { particle.add(Types.INT, Types.INT.readPrimitive(buf)); }; public static final DataReader TRAIL = (buf, particle) -> { - particle.add(Types.VAR_INT, Types.VAR_INT.readPrimitive(buf)); // Target X - particle.add(Types.VAR_INT, Types.VAR_INT.readPrimitive(buf)); // Target Y - particle.add(Types.VAR_INT, Types.VAR_INT.readPrimitive(buf)); // Target Z + particle.add(Types.DOUBLE, Types.DOUBLE.readPrimitive(buf)); // Target X + particle.add(Types.DOUBLE, Types.DOUBLE.readPrimitive(buf)); // Target Y + particle.add(Types.DOUBLE, Types.DOUBLE.readPrimitive(buf)); // Target Z particle.add(Types.INT, Types.INT.readPrimitive(buf)); // Color };