Fix vibration and transition particle meta

This commit is contained in:
Nassim Jahnke 2021-12-02 11:11:34 +01:00
parent f4a6c20695
commit 13b5545999
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
2 changed files with 3 additions and 2 deletions

View File

@ -144,6 +144,7 @@ public final class BlockItemPackets1_17 extends ItemRewriter<Protocol1_16_4To1_1
wrapper.read(Type.FLOAT); // B
} else if (id == 37) {
// Vibration signal - no nice mapping possible without tracking entity positions and doing particle tasks
wrapper.set(Type.INT, 0, -1);
wrapper.cancel();
}
});

View File

@ -160,10 +160,10 @@ public final class EntityPackets1_17 extends EntityRewriter<Protocol1_16_4To1_17
MetaType type = meta.metaType();
if (type == Types1_16.META_TYPES.particleType) {
Particle particle = (Particle) meta.getValue();
if (particle.getId() == 15) { // Dust / Dust Transition
if (particle.getId() == 16) { // Dust / Dust Transition
// Remove transition target color values 4-6
particle.getArguments().subList(4, 7).clear();
} else if (particle.getId() == 36) { // Vibration Signal
} else if (particle.getId() == 37) { // Vibration Signal
// No nice mapping possible without tracking entity positions and doing particle tasks
particle.setId(0);
particle.getArguments().clear();