mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Added MemoryManager, new memory properties, improved performance, updated RakLib, fixed misc. bugs
This commit is contained in:
@ -221,7 +221,7 @@ class Chunk extends BaseFullChunk{
|
||||
$this->isGenerated = (bool) $value;
|
||||
}
|
||||
|
||||
public static function fromFastBinary($data, LevelProvider $provider = null){
|
||||
public static function fromFastBinary(&$data, LevelProvider $provider = null){
|
||||
return self::fromBinary($data, $provider);
|
||||
}
|
||||
|
||||
@ -231,7 +231,7 @@ class Chunk extends BaseFullChunk{
|
||||
*
|
||||
* @return Chunk
|
||||
*/
|
||||
public static function fromBinary($data, LevelProvider $provider = null){
|
||||
public static function fromBinary(&$data, LevelProvider $provider = null){
|
||||
try{
|
||||
$chunkX = Binary::readLInt(substr($data, 0, 4));
|
||||
$chunkZ = Binary::readLInt(substr($data, 4, 4));
|
||||
|
Reference in New Issue
Block a user