Skip to content
This repository was archived by the owner on Feb 9, 2020. It is now read-only.

Commit b5cafa7

Browse files
committed
update protocol
1 parent 20296ae commit b5cafa7

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/pocketnode/network/minecraft/Info.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const Info = {};
22

3-
Info.PROTOCOL = 160;
4-
Info.VERSION = "1.2.8";
3+
Info.PROTOCOL = 201;
4+
Info.VERSION = "1.2.10";
55

66
Info.LOGIN_PACKET = 0x01;
77
Info.PLAY_STATUS_PACKET = 0x02;

src/pocketnode/network/minecraft/protocol/StartGamePacket.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)