mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Heap of bugfixes, cleanup and PHP 7 upgrades
This commit is contained in:
@ -30,6 +30,6 @@ class CachedEncapsulatedPacket extends EncapsulatedPacket{
|
||||
private $internalData = null;
|
||||
|
||||
public function toBinary($internal = false){
|
||||
return $this->internalData === null ? ($this->internalData = parent::toBinary($internal)) : $this->internalData;
|
||||
return $this->internalData ?? ($this->internalData = parent::toBinary($internal));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user