Fixed Entities being placed in recreated chunks

This commit is contained in:
Shoghi Cervantes 2015-01-06 18:45:08 +01:00
parent 469ef84733
commit d4e4430df0
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89
2 changed files with 2 additions and 2 deletions

View File

@ -1114,7 +1114,7 @@ abstract class Entity extends Location implements Metadatable{
$this->chunk->removeEntity($this);
}
$this->level->loadChunk($this->x >> 4, $this->z >> 4);
$this->chunk = $this->level->getChunk($this->x >> 4, $this->z >> 4);
$this->chunk = $this->level->getChunk($this->x >> 4, $this->z >> 4, true);
$this->chunkX = $this->chunk->getX();
$this->chunkZ = $this->chunk->getZ();