Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-26 16:12:43 +01:00
Fix trail particle handling
Dieser Commit ist enthalten in:
Ursprung
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binäre Datei nicht angezeigt.
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren