Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-25 15:50:12 +01:00
Fix vibration and transition particle meta
Dieser Commit ist enthalten in:
Ursprung
f4a6c20695
Commit
13b5545999
@ -144,6 +144,7 @@ public final class BlockItemPackets1_17 extends ItemRewriter<Protocol1_16_4To1_1
|
|||||||
wrapper.read(Type.FLOAT); // B
|
wrapper.read(Type.FLOAT); // B
|
||||||
} else if (id == 37) {
|
} else if (id == 37) {
|
||||||
// Vibration signal - no nice mapping possible without tracking entity positions and doing particle tasks
|
// Vibration signal - no nice mapping possible without tracking entity positions and doing particle tasks
|
||||||
|
wrapper.set(Type.INT, 0, -1);
|
||||||
wrapper.cancel();
|
wrapper.cancel();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -160,10 +160,10 @@ public final class EntityPackets1_17 extends EntityRewriter<Protocol1_16_4To1_17
|
|||||||
MetaType type = meta.metaType();
|
MetaType type = meta.metaType();
|
||||||
if (type == Types1_16.META_TYPES.particleType) {
|
if (type == Types1_16.META_TYPES.particleType) {
|
||||||
Particle particle = (Particle) meta.getValue();
|
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
|
// Remove transition target color values 4-6
|
||||||
particle.getArguments().subList(4, 7).clear();
|
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
|
// No nice mapping possible without tracking entity positions and doing particle tasks
|
||||||
particle.setId(0);
|
particle.setId(0);
|
||||||
particle.getArguments().clear();
|
particle.getArguments().clear();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren