Fix packet constructing for < 1.19.3

This commit is contained in:
games647
2023-02-09 11:56:01 +01:00
parent 971b0e1f09
commit 06c0e64073

View File

@ -289,7 +289,7 @@ public class VerifyResponseTask implements Runnable {
Class<?> profileHandleType = fakeProfile.getHandleType();
Class<?> packetHandleType = PacketRegistry.getPacketClassFromType(START);
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