ok i'm done

i am obviously not in any fit state to be doing this today...
This commit is contained in:
Dylan K. Taylor 2019-04-21 14:22:54 +01:00
parent 76c234e4e6
commit db896b9faf

View File

@ -61,7 +61,7 @@ class BatchPacket extends DataPacket{
protected function decodePayload(){ protected function decodePayload(){
$data = $this->getRemaining(); $data = $this->getRemaining();
try{ try{
$this->payload = zlib_decode($data, 1024 * 1024 * 2); //Max 64MB $this->payload = zlib_decode($data, 1024 * 1024 * 2); //Max 2MB
}catch(\ErrorException $e){ //zlib decode error }catch(\ErrorException $e){ //zlib decode error
$this->payload = ""; $this->payload = "";
} }