Skip to content

Commit

Permalink
Update BungeeInjector.java
Browse files Browse the repository at this point in the history
  • Loading branch information
CaaMoe authored Apr 25, 2024
1 parent a69be57 commit 23ed163
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ public void inject(MultiCoreAPI api) throws Throwable {
redirectIn(login, EncryptionResponse.class, () -> new MultiEncryptionResponse(api));
redirectIn(login, LoginRequest.class, () -> new MultiLoginRequest(api));

{
Protocol play = Protocol.GAME;
Object toServerDirectionData = getToServerDirectionData(play);
// {
// Protocol play = Protocol.GAME;
// Object toServerDirectionData = getToServerDirectionData(play);

Object[] objects = (Object[]) Array.newInstance(Class.forName("net.md_5.bungee.protocol.Protocol$ProtocolMapping"), 2);
objects[0] = createProtocolMapping(ProtocolConstants.MINECRAFT_1_19_3, 0x20);
objects[1] = createProtocolMapping(ProtocolConstants.MINECRAFT_1_19_4, 0x06);
// Object[] objects = (Object[]) Array.newInstance(Class.forName("net.md_5.bungee.protocol.Protocol$ProtocolMapping"), 2);
// objects[0] = createProtocolMapping(ProtocolConstants.MINECRAFT_1_19_3, 0x20);
// objects[1] = createProtocolMapping(ProtocolConstants.MINECRAFT_1_19_4, 0x06);

registerPacket(toServerDirectionData, MultiPlayerSession.class, MultiPlayerSession::new, objects);
}
// registerPacket(toServerDirectionData, MultiPlayerSession.class, MultiPlayerSession::new, objects);
//}
}


Expand Down

0 comments on commit 23ed163

Please sign in to comment.