File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ public void HandleMcpeClientToServerHandshake(McpeClientToServerHandshake messag
530530 IMcpeMessageHandler messageHandler = server . CreatePlayer ( _session , _playerInfo ) ;
531531 _bedrockHandler . Handler = messageHandler ; // Replace current message handler with real one.
532532
533- if ( _playerInfo . ProtocolVersion != McpeProtocolInfo . ProtocolVersion )
533+ if ( _playerInfo . ProtocolVersion != McpeProtocolInfo . ProtocolVersion && _playerInfo . ProtocolVersion != McpeProtocolInfo . v1_21_2 )
534534 {
535535 Log . Warn ( $ "Wrong version ({ _playerInfo . ProtocolVersion } ) of Minecraft. Upgrade to join this server.") ;
536536 _session . Disconnect ( $ "Wrong version ({ _playerInfo . ProtocolVersion } ) of Minecraft. This server requires { McpeProtocolInfo . ProtocolVersion } ") ;
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ namespace MiNET.Net
4444 public class McpeProtocolInfo
4545 {
4646 public const int ProtocolVersion = 685 ;
47+ public const int v1_21_2 = 686 ;
4748 public const string GameVersion = "1.21.0" ;
4849 }
4950
You can’t perform that action at this time.
0 commit comments