mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Removed unloaded chunk check
This commit is contained in:
parent
46e502430e
commit
456760b334
@ -939,15 +939,7 @@ abstract class Entity extends Position implements Metadatable{
|
||||
|
||||
if(!$this->justCreated and $force !== true){
|
||||
$ev = new EntityMoveEvent($this, $pos);
|
||||
if($this instanceof Player){
|
||||
for($side = 2; $side <= 5; ++$side){
|
||||
$vector = $pos->getSide($side, 2);
|
||||
if(!isset($this->usedChunks[Level::chunkHash($vector->x >> 4, $vector->z >> 4)])){
|
||||
$ev->setCancelled(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->server->getPluginManager()->callEvent($ev);
|
||||
if($ev->isCancelled()){
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user