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 +}