fix PhpStorm's screwup with World->setBlock() doc comment

it's not the first time i've seen it do this, and i still have no idea why it does this.
This commit is contained in:
Dylan K. Taylor 2019-07-21 18:52:33 +01:00
parent e388ac9c8b
commit 6fdcb09891

View File

@ -1446,6 +1446,7 @@ class World implements ChunkManager{
/**
* Sets the block at the given Vector3 coordinates.
* @see World::setBlockAt()
*
* @param Vector3 $pos
* @param Block $block
@ -1454,8 +1455,6 @@ class World implements ChunkManager{
* @return bool Whether the block has been updated or not
*
* @throws \InvalidArgumentException if the position is out of the world bounds
*@see World::setBlockAt()
*
*/
public function setBlock(Vector3 $pos, Block $block, bool $update = true) : bool{
return $this->setBlockAt((int) floor($pos->x), (int) floor($pos->y), (int) floor($pos->z), $block, $update);