mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Fix particle doesn't use new mapping id (#3712)
This commit is contained in:
parent
cd5d88c34f
commit
1e35c2713f
@ -81,8 +81,8 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
|
||||
wrapper.passthrough(Type.INT); // Particle Count
|
||||
|
||||
// Read data and add it to Particle
|
||||
final Particle particle = new Particle(particleId);
|
||||
final ParticleMappings mappings = protocol.getMappingData().getParticleMappings();
|
||||
final Particle particle = new Particle(mappings.getNewId(particleId));
|
||||
if (mappings.isBlockParticle(particleId)) {
|
||||
final int blockStateId = wrapper.read(Type.VAR_INT);
|
||||
particle.add(Type.VAR_INT, protocol.getMappingData().getNewBlockStateId(blockStateId));
|
||||
|
Loading…
Reference in New Issue
Block a user