mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-21 12:07:38 +01:00
Fix trail particle handling
This commit is contained in:
parent
d2d1d0014f
commit
80b530a368
@ -34,14 +34,19 @@ public final class ParticleRewriter1_21_2 extends ParticleRewriter<ClientboundPa
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void rewriteParticle(final UserConnection connection, final Particle particle) {
|
public void rewriteParticle(final UserConnection connection, final Particle particle) {
|
||||||
|
final String identifier = protocol.getMappingData().getParticleMappings().identifier(particle.id());
|
||||||
super.rewriteParticle(connection, particle);
|
super.rewriteParticle(connection, particle);
|
||||||
|
|
||||||
final String identifier = protocol.getMappingData().getParticleMappings().mappedIdentifier(particle.id());
|
|
||||||
if (identifier.equals("minecraft:dust_color_transition")) {
|
if (identifier.equals("minecraft:dust_color_transition")) {
|
||||||
argbToVector(particle, 0);
|
argbToVector(particle, 0);
|
||||||
argbToVector(particle, 3);
|
argbToVector(particle, 3);
|
||||||
} else if (identifier.equals("minecraft:dust")) {
|
} else if (identifier.equals("minecraft:dust")) {
|
||||||
argbToVector(particle, 0);
|
argbToVector(particle, 0);
|
||||||
|
} else if (identifier.equals("minecraft:trail")) {
|
||||||
|
// Remove target
|
||||||
|
particle.removeArgument(2);
|
||||||
|
particle.removeArgument(1);
|
||||||
|
particle.removeArgument(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user