Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 17:20:24 +01:00
Try to fix particles
Dieser Commit ist enthalten in:
Ursprung
1cdfeadd86
Commit
f8895c7c78
@ -227,6 +227,24 @@ public class WorldPackets {
|
|||||||
} else if (id == 27) {
|
} else if (id == 27) {
|
||||||
InventoryPackets.toClient(wrapper.passthrough(Type.FLAT_VAR_INT_ITEM));
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren