mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Improved memory usage when chunks are saved/generated
This commit is contained in:
parent
7c68e42a86
commit
d10274ca7c
@ -152,7 +152,7 @@ class Chunk extends BaseChunk{
|
||||
}
|
||||
|
||||
public function toBinary(){
|
||||
$nbt = $this->getNBT();
|
||||
$nbt = clone $this->getNBT();
|
||||
|
||||
$nbt->xPos = new Int("xPos", $this->x);
|
||||
$nbt->zPos = new Int("zPos", $this->z);
|
||||
|
@ -248,7 +248,7 @@ class Chunk extends BaseFullChunk{
|
||||
}
|
||||
|
||||
public function toBinary(){
|
||||
$nbt = $this->getNBT();
|
||||
$nbt = clone $this->getNBT();
|
||||
|
||||
$nbt->xPos = new Int("xPos", $this->x);
|
||||
$nbt->zPos = new Int("zPos", $this->z);
|
||||
|
Loading…
x
Reference in New Issue
Block a user