Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +01:00
Fix footstep particle causing null kick (#4287)
Dieser Commit ist enthalten in:
Ursprung
40665782e7
Commit
9d4af84872
@ -95,7 +95,7 @@ public class FullMappingsBase implements FullMappings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String mappedIdentifier(final int mappedId) {
|
public @Nullable String mappedIdentifier(final int mappedId) {
|
||||||
if (mappedId < 0 || mappedId >= mappedIdToString.length) {
|
if (mappedId < 0 || mappedId >= mappedIdToString.length) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -45,10 +45,10 @@ public final class ParticleRewriter1_21_2 extends ParticleRewriter<ClientboundPa
|
|||||||
super.rewriteParticle(connection, particle);
|
super.rewriteParticle(connection, particle);
|
||||||
|
|
||||||
final String identifier = protocol.getMappingData().getParticleMappings().mappedIdentifier(particle.id());
|
final String identifier = protocol.getMappingData().getParticleMappings().mappedIdentifier(particle.id());
|
||||||
if (identifier.equals("minecraft:dust_color_transition")) {
|
if ("minecraft:dust_color_transition".equals(identifier)) {
|
||||||
floatsToARGB(particle, 0);
|
floatsToARGB(particle, 0);
|
||||||
floatsToARGB(particle, 1);
|
floatsToARGB(particle, 1);
|
||||||
} else if (identifier.equals("minecraft:dust")) {
|
} else if ("minecraft:dust".equals(identifier)) {
|
||||||
floatsToARGB(particle, 0);
|
floatsToARGB(particle, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren