From 4d0e8741fe6310168c7b1c1e344e3015a5a8ad2f Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 11 Aug 2019 19:32:21 +0100 Subject: [PATCH] Added a deprecation notice to Entity->getBlocksAround() --- src/pocketmine/entity/Entity.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index a2026f4ec..bf016fa54 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -1782,6 +1782,9 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ } /** + * @deprecated WARNING: Despite what its name implies, this function DOES NOT return all the blocks around the entity. + * Instead, it returns blocks which have reactions for an entity intersecting with them. + * * @return Block[] */ public function getBlocksAround() : array{