forked from TuxCoding/FastLogin
Fix packet constructing for < 1.19.3
This commit is contained in:
@ -289,7 +289,7 @@ public class VerifyResponseTask implements Runnable {
|
|||||||
Class<?> profileHandleType = fakeProfile.getHandleType();
|
Class<?> profileHandleType = fakeProfile.getHandleType();
|
||||||
Class<?> packetHandleType = PacketRegistry.getPacketClassFromType(START);
|
Class<?> packetHandleType = PacketRegistry.getPacketClassFromType(START);
|
||||||
ConstructorAccessor startCons = Accessors.getConstructorAccessorOrNull(packetHandleType, profileHandleType);
|
ConstructorAccessor startCons = Accessors.getConstructorAccessorOrNull(packetHandleType, profileHandleType);
|
||||||
startPacket = new PacketContainer(START, startCons.invoke(fakeProfile));
|
startPacket = new PacketContainer(START, startCons.invoke(fakeProfile.getHandle()));
|
||||||
}
|
}
|
||||||
|
|
||||||
//we don't want to handle our own packets so ignore filters
|
//we don't want to handle our own packets so ignore filters
|
||||||
|
Reference in New Issue
Block a user