Fix dust color transition and vibration particle id

Fixes #2543
This commit is contained in:
KennyTV 2021-06-14 09:11:19 +02:00
parent 3cec1751c9
commit 13d27a6f4d
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

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