3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-26 00:00:33 +01:00

Fix trail particle handling

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-10-29 13:33:16 +01:00
Ursprung d2d1d0014f
Commit 80b530a368
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F
2 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -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);
} }
} }