mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-04 09:30:25 +01:00
Fix vibration and transition particle meta
This commit is contained in:
parent
f4a6c20695
commit
13b5545999
@ -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();
|
||||
}
|
||||
});
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user