mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-23 02:25:19 +01:00
oops
This commit is contained in:
parent
9a26ac380a
commit
a27efd94c8
@ -129,8 +129,8 @@ public class Protocol1_14To1_13_2 extends Protocol {
|
|||||||
handler(new PacketHandler() {
|
handler(new PacketHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(PacketWrapper wrapper) throws Exception {
|
public void handle(PacketWrapper wrapper) throws Exception {
|
||||||
int blockTagsSize;
|
int blockTagsSize = wrapper.read(Type.VAR_INT);
|
||||||
wrapper.write(Type.VAR_INT, (blockTagsSize = wrapper.passthrough(Type.VAR_INT)) + 3); // block tags
|
wrapper.write(Type.VAR_INT, blockTagsSize + 3); // 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[] blockIds = wrapper.passthrough(Type.VAR_INT_ARRAY);
|
Integer[] blockIds = wrapper.passthrough(Type.VAR_INT_ARRAY);
|
||||||
@ -151,8 +151,8 @@ public class Protocol1_14To1_13_2 extends Protocol {
|
|||||||
wrapper.write(Type.VAR_INT_ARRAY, new Integer[]{
|
wrapper.write(Type.VAR_INT_ARRAY, new Integer[]{
|
||||||
getNewBlockId(150)
|
getNewBlockId(150)
|
||||||
});
|
});
|
||||||
int itemTagsSize;
|
int itemTagsSize = wrapper.read(Type.VAR_INT);
|
||||||
wrapper.write(Type.VAR_INT, (itemTagsSize = wrapper.read(Type.VAR_INT)) + 1); // item tags
|
wrapper.write(Type.VAR_INT, itemTagsSize + 1); // 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[] itemIds = wrapper.passthrough(Type.VAR_INT_ARRAY);
|
Integer[] itemIds = wrapper.passthrough(Type.VAR_INT_ARRAY);
|
||||||
|
Loading…
Reference in New Issue
Block a user