mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-26 23:52:31 -05:00
Fix TrailParticleData typo
This commit is contained in:
parent
e7fb86682b
commit
54d3fc21a6
2 changed files with 4 additions and 4 deletions
|
@ -73,7 +73,7 @@ import org.geysermc.mcprotocollib.protocol.data.game.level.particle.ParticleData
|
|||
import org.geysermc.mcprotocollib.protocol.data.game.level.particle.ParticleType;
|
||||
import org.geysermc.mcprotocollib.protocol.data.game.level.particle.SculkChargeParticleData;
|
||||
import org.geysermc.mcprotocollib.protocol.data.game.level.particle.ShriekParticleData;
|
||||
import org.geysermc.mcprotocollib.protocol.data.game.level.particle.TraiParticleData;
|
||||
import org.geysermc.mcprotocollib.protocol.data.game.level.particle.TrailParticleData;
|
||||
import org.geysermc.mcprotocollib.protocol.data.game.level.particle.VibrationParticleData;
|
||||
import org.geysermc.mcprotocollib.protocol.data.game.level.particle.positionsource.BlockPositionSource;
|
||||
import org.geysermc.mcprotocollib.protocol.data.game.level.particle.positionsource.EntityPositionSource;
|
||||
|
@ -725,7 +725,7 @@ public class MinecraftCodecHelper extends BasePacketCodecHelper {
|
|||
case ITEM -> new ItemParticleData(this.readOptionalItemStack(buf));
|
||||
case SCULK_CHARGE -> new SculkChargeParticleData(buf.readFloat());
|
||||
case SHRIEK -> new ShriekParticleData(this.readVarInt(buf));
|
||||
case TRAIL -> new TraiParticleData(Vector3d.from(buf.readDouble(), buf.readDouble(), buf.readDouble()), buf.readInt(), this.readVarInt(buf));
|
||||
case TRAIL -> new TrailParticleData(Vector3d.from(buf.readDouble(), buf.readDouble(), buf.readDouble()), buf.readInt(), this.readVarInt(buf));
|
||||
case VIBRATION -> new VibrationParticleData(this.readPositionSource(buf), this.readVarInt(buf));
|
||||
default -> null;
|
||||
};
|
||||
|
@ -765,7 +765,7 @@ public class MinecraftCodecHelper extends BasePacketCodecHelper {
|
|||
this.writeVarInt(buf, shriekData.getDelay());
|
||||
}
|
||||
case TRAIL -> {
|
||||
TraiParticleData trailData = (TraiParticleData) data;
|
||||
TrailParticleData trailData = (TrailParticleData) data;
|
||||
buf.writeDouble(trailData.target().getX());
|
||||
buf.writeDouble(trailData.target().getY());
|
||||
buf.writeDouble(trailData.target().getZ());
|
||||
|
|
|
@ -2,5 +2,5 @@ package org.geysermc.mcprotocollib.protocol.data.game.level.particle;
|
|||
|
||||
import org.cloudburstmc.math.vector.Vector3d;
|
||||
|
||||
public record TraiParticleData(Vector3d target, int color, int duration) implements ParticleData {
|
||||
public record TrailParticleData(Vector3d target, int color, int duration) implements ParticleData {
|
||||
}
|
Loading…
Reference in a new issue