Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
disable a checker in LoginPackHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
SenseiTarzan committed Jan 3, 2024
1 parent 13852e4 commit 47a5d3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/network/mcpe/handler/LoginPacketHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ public function handleLogin(LoginPacket $packet) : bool{
if(PacketUtils::TITLE_ID_TO_DEVICE[$extraData->titleId] !== $clientData->DeviceOS) {
throw new PacketHandlingException("Invalid TitleID");
}
if($clientData->DeviceOS === DeviceOS::ANDROID && $clientData->DeviceModel !== strtoupper($clientData->DeviceModel)) {
/* Zwuiix, I'll let you redo your system
* if($clientData->DeviceOS === DeviceOS::ANDROID && $clientData->DeviceModel !== strtoupper($clientData->DeviceModel)) {
throw new PacketHandlingException("Invalid DeviceModel");
}
if($clientData->ThirdPartyName !== $extraData->displayName) {
throw new PacketHandlingException("Invalid ThirdPartyName");
}
}*/

if(!Uuid::isValid($extraData->identity)){
throw new PacketHandlingException("Invalid login UUID");
Expand Down

0 comments on commit 47a5d3b

Please sign in to comment.