From 4b03dbebbaba1215ddf2348e13eeb154fa72adbe Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 30 Mar 2018 12:21:37 +0100 Subject: [PATCH] Entity: use temporalVector in checkBlockCollision() instead of creating a new Vector3 --- src/pocketmine/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 8239c7d34..deb208db4 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -1708,7 +1708,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ } protected function checkBlockCollision(){ - $vector = new Vector3(0, 0, 0); + $vector = $this->temporalVector->setComponents(0, 0, 0); foreach($this->getBlocksAround() as $block){ $block->onEntityCollide($this);