mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Binary strict types (#969)
* Some Binary cleanup, type-hints and strict types yes, I know this is very crashy... that's good, because it highlights unexpected behaviour * added some default values
This commit is contained in:
@ -29,7 +29,7 @@ class AvailableCommandsPacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::AVAILABLE_COMMANDS_PACKET;
|
||||
|
||||
public $commands; //JSON-encoded command data
|
||||
public $unknown;
|
||||
public $unknown = "";
|
||||
|
||||
public function decode(){
|
||||
$this->commands = $this->getString();
|
||||
|
Reference in New Issue
Block a user