Fixed bug in updateAround where only one block is updated

This commit is contained in:
Dylan K. Taylor 2016-09-10 16:14:20 +01:00
parent a3e3a5f631
commit e962f7fb0a

View File

@ -1016,6 +1016,7 @@ class Level implements ChunkManager, Metadatable{
* @param Vector3 $pos
*/
public function updateAround(Vector3 $pos){
$pos = $pos->floor();
$this->server->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->getBlock($this->temporalVector->setComponents($pos->x, $pos->y - 1, $pos->z))));
if(!$ev->isCancelled()){
$ev->getBlock()->onUpdate(self::BLOCK_UPDATE_NORMAL);