code style fix

This commit is contained in:
Sunch 2025-04-27 20:36:24 +08:00
parent fc5c5625cb
commit 5e8e9330e2
361 changed files with 4766 additions and 4650 deletions

View file

@ -2,13 +2,13 @@
class ContainerSetContentPacket extends RakNetDataPacket{
public $windowid;
public $slots = array();
public $hotbar = array();
public $slots = [];
public $hotbar = [];
public function pid(){
return ProtocolInfo::CONTAINER_SET_CONTENT_PACKET;
}
public function decode(){
$this->windowid = $this->getByte();
$count = $this->getShort();
@ -22,7 +22,7 @@ class ContainerSetContentPacket extends RakNetDataPacket{
}
}
}
public function encode(){
$this->reset();
$this->putByte($this->windowid);