From e3f0ed0744b769576badad5c66212f94cdf3b13f Mon Sep 17 00:00:00 2001 From: yefengeeeeeeeeeee <403749250@qq.com> Date: Sat, 3 May 2025 16:18:21 +0800 Subject: [PATCH] Thanks to @ArkQuark --- src/network/protocol/packet/SetTimePacket.php | 2 +- src/network/protocol/packet/StartGamePacket.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/protocol/packet/SetTimePacket.php b/src/network/protocol/packet/SetTimePacket.php index afbc9fd2..4f055bc0 100644 --- a/src/network/protocol/packet/SetTimePacket.php +++ b/src/network/protocol/packet/SetTimePacket.php @@ -14,7 +14,7 @@ class SetTimePacket extends RakNetDataPacket{ public function encode(){ $this->reset(); - $this->putInt($this->time);//long + $this->putInt($this->time);// long in 0.6.1 if($this->PROTOCOL >= ProtocolInfo8::CURRENT_PROTOCOL_8){ $this->putByte($this->started ? 0x80:0x00); } diff --git a/src/network/protocol/packet/StartGamePacket.php b/src/network/protocol/packet/StartGamePacket.php index fffb16da..c81898a8 100644 --- a/src/network/protocol/packet/StartGamePacket.php +++ b/src/network/protocol/packet/StartGamePacket.php @@ -19,7 +19,7 @@ class StartGamePacket extends RakNetDataPacket{ public function encode(){ $this->reset(); - $this->putInt($this->seed);//long + $this->putInt($this->seed);// long in 0.6.1 $this->putInt($this->generator); $this->putInt($this->gamemode); $this->putInt($this->eid);