From 0b10f2b8df9b3817d3275893831cbda8d0f63a10 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Thu, 2 Mar 2023 07:42:51 +0300 Subject: [PATCH] fixed entity spawn --- src/network/protocol/packet/AddEntityPacket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/protocol/packet/AddEntityPacket.php b/src/network/protocol/packet/AddEntityPacket.php index 52d1e2b8..91c9c791 100644 --- a/src/network/protocol/packet/AddEntityPacket.php +++ b/src/network/protocol/packet/AddEntityPacket.php @@ -22,7 +22,7 @@ class AddEntityPacket extends RakNetDataPacket{ public function encode(){ $this->reset(); $this->putInt($this->eid); - $this->putByte($this->type); + $this->putInt($this->type); $this->putFloat($this->x); $this->putFloat($this->y); $this->putFloat($this->z); @@ -34,4 +34,4 @@ class AddEntityPacket extends RakNetDataPacket{ } } -} \ No newline at end of file +}