mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Fixed Entities being placed in recreated chunks
This commit is contained in:
parent
469ef84733
commit
d4e4430df0
@ -1203,7 +1203,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
|||||||
if(!$this->loggedIn){
|
if(!$this->loggedIn){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->dead === true and $this->spawned){
|
if($this->dead === true and $this->spawned){
|
||||||
++$this->deadTicks;
|
++$this->deadTicks;
|
||||||
if($this->deadTicks >= 10){
|
if($this->deadTicks >= 10){
|
||||||
|
@ -1114,7 +1114,7 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
$this->chunk->removeEntity($this);
|
$this->chunk->removeEntity($this);
|
||||||
}
|
}
|
||||||
$this->level->loadChunk($this->x >> 4, $this->z >> 4);
|
$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->chunkX = $this->chunk->getX();
|
||||||
$this->chunkZ = $this->chunk->getZ();
|
$this->chunkZ = $this->chunk->getZ();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user