mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-10-06 10:27:31 +02:00
Try to fix particles
This commit is contained in:
parent
1cdfeadd86
commit
f8895c7c78
@ -227,6 +227,24 @@ public class WorldPackets {
|
||||
} else if (id == 27) {
|
||||
InventoryPackets.toClient(wrapper.passthrough(Type.FLAT_VAR_INT_ITEM));
|
||||
}
|
||||
|
||||
int newId = id;
|
||||
if (newId >= 10) {
|
||||
newId += 2; // new 10, 11
|
||||
}
|
||||
if (newId >= 13) {
|
||||
newId += 1; // new 11 -> 13
|
||||
}
|
||||
if (newId >= 27) {
|
||||
newId += 2; // new 24, 25 -> 27
|
||||
}
|
||||
if (newId >= 42) {
|
||||
newId += 1; // new 39 -> 42
|
||||
}
|
||||
|
||||
if (newId != id) {
|
||||
wrapper.set(Type.INT, 0, newId);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user