Improved memory usage when chunks are saved/generated

This commit is contained in:
Shoghi Cervantes 2014-08-01 11:53:24 +02:00
parent 7c68e42a86
commit d10274ca7c
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);