mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Level: remove dead function
this is handled by a queue now instead of ondemand, to avoid recursion bugs.
This commit is contained in:
parent
6a1f8640f6
commit
4f20a504e3
@ -1081,45 +1081,6 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param Vector3 $pos
|
|
||||||
*/
|
|
||||||
public function updateAround(Vector3 $pos){
|
|
||||||
$x = (int) floor($pos->x);
|
|
||||||
$y = (int) floor($pos->y);
|
|
||||||
$z = (int) floor($pos->z);
|
|
||||||
|
|
||||||
$this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x, $y - 1, $z)));
|
|
||||||
if(!$ev->isCancelled()){
|
|
||||||
$ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x, $y + 1, $z)));
|
|
||||||
if(!$ev->isCancelled()){
|
|
||||||
$ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x - 1, $y, $z)));
|
|
||||||
if(!$ev->isCancelled()){
|
|
||||||
$ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x + 1, $y, $z)));
|
|
||||||
if(!$ev->isCancelled()){
|
|
||||||
$ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x, $y, $z - 1)));
|
|
||||||
if(!$ev->isCancelled()){
|
|
||||||
$ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlockAt($x, $y, $z + 1)));
|
|
||||||
if(!$ev->isCancelled()){
|
|
||||||
$ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Schedules a block update to be executed after the specified number of ticks.
|
* Schedules a block update to be executed after the specified number of ticks.
|
||||||
* Blocks will be updated with the scheduled update type.
|
* Blocks will be updated with the scheduled update type.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user