3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-26 08:10:10 +01:00

Fix vibration and transition particle meta

Dieser Commit ist enthalten in:
Nassim Jahnke 2021-12-02 11:11:34 +01:00
Ursprung f4a6c20695
Commit 13b5545999
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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();
} }
}); });

Datei anzeigen

@ -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();