3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-08 13:52:50 +02:00

Try to fix particles

Dieser Commit ist enthalten in:
KennyTV 2019-03-07 23:11:09 +01:00
Ursprung 1cdfeadd86
Commit f8895c7c78

Datei anzeigen

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