mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-29 13:25:20 +01:00
Update VV usage
This commit is contained in:
parent
0514dd2ea5
commit
7d03831ba8
@ -151,9 +151,9 @@ public class BlockItemPackets1_12 extends LegacyBlockItemRewriter<Protocol1_11_1
|
||||
confirm.write(Type.SHORT, wrapper.get(Type.SHORT, 1));
|
||||
confirm.write(Type.BOOLEAN, false); // Success - not used
|
||||
|
||||
wrapper.sendToServer(Protocol1_11_1To1_12.class, true, true);
|
||||
wrapper.sendToServer(Protocol1_11_1To1_12.class);
|
||||
wrapper.cancel();
|
||||
confirm.sendToServer(Protocol1_11_1To1_12.class, true, true);
|
||||
confirm.sendToServer(Protocol1_11_1To1_12.class);
|
||||
return;
|
||||
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ public class EntityPackets1_13 extends LegacyEntityRewriter<Protocol1_12_2To1_13
|
||||
|
||||
positionAndLook.write(Type.BYTE, (byte) 7); // bitfield, 0=absolute, 1=relative - x,y,z relative, yaw,pitch absolute
|
||||
positionAndLook.write(Type.VAR_INT, -1);
|
||||
positionAndLook.send(Protocol1_12_2To1_13.class, true, true);
|
||||
positionAndLook.send(Protocol1_12_2To1_13.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -418,7 +418,7 @@ public class PlayerPacket1_13 extends RewriterBase<Protocol1_12_2To1_13> {
|
||||
for (String value : suggestions) {
|
||||
response.write(Type.STRING, value);
|
||||
}
|
||||
response.send(Protocol1_12_2To1_13.class);
|
||||
response.scheduleSend(Protocol1_12_2To1_13.class);
|
||||
storage.lastRequest = null;
|
||||
return;
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ public class EntityPackets1_14 extends LegacyEntityRewriter<Protocol1_13_2To1_14
|
||||
equipmentPacket.write(Type.VAR_INT, entityId);
|
||||
equipmentPacket.write(Type.VAR_INT, i);
|
||||
equipmentPacket.write(Type.FLAT_VAR_INT_ITEM, null);
|
||||
equipmentPacket.send(Protocol1_13_2To1_14.class, true, true);
|
||||
equipmentPacket.send(Protocol1_13_2To1_14.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ public class EntityPackets1_16 extends EntityRewriter<Protocol1_15_2To1_16> {
|
||||
spawnLightningPacket.write(Type.DOUBLE, wrapper.get(Type.DOUBLE, 0)); // X
|
||||
spawnLightningPacket.write(Type.DOUBLE, wrapper.get(Type.DOUBLE, 1)); // Y
|
||||
spawnLightningPacket.write(Type.DOUBLE, wrapper.get(Type.DOUBLE, 2)); // Z
|
||||
spawnLightningPacket.send(Protocol1_15_2To1_16.class, true, true);
|
||||
spawnLightningPacket.send(Protocol1_15_2To1_16.class);
|
||||
}
|
||||
});
|
||||
handler(getSpawnTrackerWithDataHandler(Entity1_16Types.FALLING_BLOCK));
|
||||
@ -119,7 +119,7 @@ public class EntityPackets1_16 extends EntityRewriter<Protocol1_15_2To1_16> {
|
||||
packet.write(Type.LONG, 0L);
|
||||
packet.write(Type.UNSIGNED_BYTE, (short) 0);
|
||||
packet.write(Type.STRING, "default");
|
||||
packet.send(Protocol1_15_2To1_16.class, true, true);
|
||||
packet.send(Protocol1_15_2To1_16.class);
|
||||
}
|
||||
|
||||
clientWorld.setEnvironment(dimension);
|
||||
|
@ -3,7 +3,7 @@ metadata.format.version = "1.0"
|
||||
[versions]
|
||||
|
||||
# ViaVersion
|
||||
viaver = "4.0.0-1.17-pre1-SNAPSHOT"
|
||||
viaver = "4.0.0-1.17-pre2-SNAPSHOT"
|
||||
|
||||
# Common provided
|
||||
netty = "4.0.20.Final"
|
||||
|
Loading…
Reference in New Issue
Block a user