Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
fix tags packet
Dieser Commit ist enthalten in:
Ursprung
3b48f11f7b
Commit
c141d6efc7
@ -123,13 +123,16 @@ public class Protocol13_1_PRE1TO1_13 extends Protocol {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//Tags
|
||||||
registerOutgoing(State.PLAY, 0x55, 0x55, new PacketRemapper() {
|
registerOutgoing(State.PLAY, 0x55, 0x55, new PacketRemapper() {
|
||||||
@Override
|
@Override
|
||||||
public void registerMap() {
|
public void registerMap() {
|
||||||
handler(new PacketHandler() {
|
handler(new PacketHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(PacketWrapper wrapper) throws Exception {
|
public void handle(PacketWrapper wrapper) throws Exception {
|
||||||
int blockTagsSize = wrapper.read(Type.VAR_INT); // block tags
|
int blockTagsSize = wrapper.passthrough(Type.VAR_INT); // block tags
|
||||||
for (int i = 0; i < blockTagsSize; i++) {
|
for (int i = 0; i < blockTagsSize; i++) {
|
||||||
wrapper.passthrough(Type.STRING);
|
wrapper.passthrough(Type.STRING);
|
||||||
Integer[] blocks = wrapper.passthrough(Type.VAR_INT_ARRAY);
|
Integer[] blocks = wrapper.passthrough(Type.VAR_INT_ARRAY);
|
||||||
@ -137,7 +140,7 @@ public class Protocol13_1_PRE1TO1_13 extends Protocol {
|
|||||||
blocks[j] = getNewBlockId(blocks[j]);
|
blocks[j] = getNewBlockId(blocks[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int itemTagsSize = wrapper.read(Type.VAR_INT); // item tags
|
int itemTagsSize = wrapper.passthrough(Type.VAR_INT); // item tags
|
||||||
for (int i = 0; i < itemTagsSize; i++) {
|
for (int i = 0; i < itemTagsSize; i++) {
|
||||||
wrapper.passthrough(Type.STRING);
|
wrapper.passthrough(Type.STRING);
|
||||||
Integer[] items = wrapper.passthrough(Type.VAR_INT_ARRAY);
|
Integer[] items = wrapper.passthrough(Type.VAR_INT_ARRAY);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren