3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-25 15:50:12 +01:00

Fix dust color transition and vibration particle id

Fixes #2543
Dieser Commit ist enthalten in:
KennyTV 2021-06-14 09:11:19 +02:00
Ursprung 3cec1751c9
Commit 13d27a6f4d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -109,7 +109,7 @@ public final class BlockItemPackets1_17 extends ItemRewriter<Protocol1_16_4To1_1
map(Type.INT); // Particle count map(Type.INT); // Particle count
handler(wrapper -> { handler(wrapper -> {
int id = wrapper.get(Type.INT, 0); int id = wrapper.get(Type.INT, 0);
if (id == 15) { if (id == 16) {
wrapper.passthrough(Type.FLOAT); // R wrapper.passthrough(Type.FLOAT); // R
wrapper.passthrough(Type.FLOAT); // G wrapper.passthrough(Type.FLOAT); // G
wrapper.passthrough(Type.FLOAT); // B wrapper.passthrough(Type.FLOAT); // B
@ -119,7 +119,7 @@ public final class BlockItemPackets1_17 extends ItemRewriter<Protocol1_16_4To1_1
wrapper.read(Type.FLOAT); // R wrapper.read(Type.FLOAT); // R
wrapper.read(Type.FLOAT); // G wrapper.read(Type.FLOAT); // G
wrapper.read(Type.FLOAT); // B wrapper.read(Type.FLOAT); // B
} else if (id == 36) { } 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.cancel(); wrapper.cancel();
} }