3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-20 06:50:08 +01:00

Fix particle doesn't use new mapping id (#3712)

Dieser Commit ist enthalten in:
caramel 2024-02-26 04:36:27 +09:00 committet von GitHub
Ursprung cd5d88c34f
Commit 1e35c2713f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -81,8 +81,8 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
wrapper.passthrough(Type.INT); // Particle Count wrapper.passthrough(Type.INT); // Particle Count
// Read data and add it to Particle // Read data and add it to Particle
final Particle particle = new Particle(particleId);
final ParticleMappings mappings = protocol.getMappingData().getParticleMappings(); final ParticleMappings mappings = protocol.getMappingData().getParticleMappings();
final Particle particle = new Particle(mappings.getNewId(particleId));
if (mappings.isBlockParticle(particleId)) { if (mappings.isBlockParticle(particleId)) {
final int blockStateId = wrapper.read(Type.VAR_INT); final int blockStateId = wrapper.read(Type.VAR_INT);
particle.add(Type.VAR_INT, protocol.getMappingData().getNewBlockStateId(blockStateId)); particle.add(Type.VAR_INT, protocol.getMappingData().getNewBlockStateId(blockStateId));