Fix trail particle reading

This commit is contained in:
Nassim Jahnke 2024-10-29 13:32:54 +01:00
parent f26e370a49
commit 7985b39ed5
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -149,9 +149,9 @@ public class ParticleType extends DynamicType<Particle> {
particle.add(Types.INT, Types.INT.readPrimitive(buf)); particle.add(Types.INT, Types.INT.readPrimitive(buf));
}; };
public static final DataReader<Particle> TRAIL = (buf, particle) -> { public static final DataReader<Particle> TRAIL = (buf, particle) -> {
particle.add(Types.VAR_INT, Types.VAR_INT.readPrimitive(buf)); // Target X particle.add(Types.DOUBLE, Types.DOUBLE.readPrimitive(buf)); // Target X
particle.add(Types.VAR_INT, Types.VAR_INT.readPrimitive(buf)); // Target Y particle.add(Types.DOUBLE, Types.DOUBLE.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 Z
particle.add(Types.INT, Types.INT.readPrimitive(buf)); // Color particle.add(Types.INT, Types.INT.readPrimitive(buf)); // Color
}; };