This repository was archived by the owner on Feb 9, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
src/pocketnode/network/minecraft Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const Info = { } ;
22
3- Info . PROTOCOL = 160 ;
4- Info . VERSION = "1.2.8 " ;
3+ Info . PROTOCOL = 201 ;
4+ Info . VERSION = "1.2.10 " ;
55
66Info . LOGIN_PACKET = 0x01 ;
77Info . PLAY_STATUS_PACKET = 0x02 ;
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ class StartGamePacket extends DataPacket {
4242 this . hasTrustPlayersEnabled = false ;
4343 this . defaultPlayerPermission = 2 ; //PlayerPermissions::MEMBER; //TODO
4444 this . xboxLiveBroadcastMode = 0 ; //TODO: find values
45+ this . serverChunkTickRadius = 4 ;
4546
4647 this . levelId = "" ; //base64 string, usually the same as world folder name in vanilla
4748
@@ -91,6 +92,7 @@ class StartGamePacket extends DataPacket {
9192 this . hasTrustPlayersEnabled = this . readBool ( ) ;
9293 this . defaultPlayerPermission = this . readVarInt ( ) ;
9394 this . xboxLiveBroadcastMode = this . readVarInt ( ) ;
95+ this . serverChunkTickRadius = this . readLInt ( ) ;
9496
9597 this . levelId = this . readString ( ) ;
9698 this . levelName = this . readString ( ) ;
@@ -132,7 +134,8 @@ class StartGamePacket extends DataPacket {
132134 . writeBool ( this . hasStartWithMapEnabled )
133135 . writeBool ( this . hasTrustPlayersEnabled )
134136 . writeVarInt ( this . defaultPlayerPermission )
135- . writeVarInt ( this . xboxLiveBroadcastMode ) ;
137+ . writeVarInt ( this . xboxLiveBroadcastMode )
138+ . writeLInt ( this . serverChunkTickRadius ) ;
136139
137140 this . writeString ( this . levelId )
138141 . writeString ( this . levelName )
You can’t perform that action at this time.
0 commit comments