mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-09-26 05:32:54 +02:00
fix tags packet
This commit is contained in:
parent
3b48f11f7b
commit
c141d6efc7
@ -123,13 +123,16 @@ public class Protocol13_1_PRE1TO1_13 extends Protocol {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
//Tags
|
||||
registerOutgoing(State.PLAY, 0x55, 0x55, new PacketRemapper() {
|
||||
@Override
|
||||
public void registerMap() {
|
||||
handler(new PacketHandler() {
|
||||
@Override
|
||||
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++) {
|
||||
wrapper.passthrough(Type.STRING);
|
||||
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]);
|
||||
}
|
||||
}
|
||||
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++) {
|
||||
wrapper.passthrough(Type.STRING);
|
||||
Integer[] items = wrapper.passthrough(Type.VAR_INT_ARRAY);
|
||||
|
Loading…
Reference in New Issue
Block a user