mirror of
https://github.com/ViaVersion/ViaLegacy.git
synced 2024-12-22 16:38:16 +01:00
Fixed wrong Via API usage
This commit is contained in:
parent
5c8dda52a4
commit
05faffcae4
@ -59,7 +59,7 @@ public class Protocolb1_8_0_1tob1_7_0_3 extends AbstractProtocol<ClientboundPack
|
||||
this.registerClientbound(ClientboundPacketsb1_7.KEEP_ALIVE, new PacketHandlers() {
|
||||
@Override
|
||||
public void register() {
|
||||
create(Type.INT, ThreadLocalRandom.current().nextInt(Short.MAX_VALUE)); // key
|
||||
handler(wrapper -> wrapper.write(Type.INT, ThreadLocalRandom.current().nextInt(Short.MAX_VALUE))); // key
|
||||
}
|
||||
});
|
||||
this.registerClientbound(ClientboundPacketsb1_7.JOIN_GAME, new PacketHandlers() {
|
||||
|
Loading…
Reference in New Issue
Block a user