Removes redundant compression argument from NBT::readCompressed() and
NBT:: readNetworkCompressed()
This commit is contained in:
JackNoordhuis
2017-04-12 00:40:41 +10:00
parent 80292c6c7a
commit c01e0354bd
4 changed files with 5 additions and 5 deletions

View File

@ -423,11 +423,11 @@ class NBT{
$this->buffer = "";
}
public function readCompressed($buffer, $compression = ZLIB_ENCODING_GZIP){
public function readCompressed($buffer){
$this->read(zlib_decode($buffer));
}
public function readNetworkCompressed($buffer, $compression = ZLIB_ENCODING_GZIP){
public function readNetworkCompressed($buffer){
$this->read(zlib_decode($buffer), false, true);
}