mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 01:55:47 +01:00
Fix trail particle reading
This commit is contained in:
parent
f26e370a49
commit
7985b39ed5
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user