From 6ccfe21d576961b4c46c50a2457db7f4588c0827 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 4 Feb 2021 23:10:13 +0000 Subject: [PATCH] Block: improved accuracy of isFullCube() --- src/block/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block/Block.php b/src/block/Block.php index 4b82a0cb9..d54f6ef2b 100644 --- a/src/block/Block.php +++ b/src/block/Block.php @@ -585,7 +585,7 @@ class Block{ public function isFullCube() : bool{ $bb = $this->getCollisionBoxes(); - return count($bb) === 1 and $bb[0]->getAverageEdgeLength() >= 1; //TODO: average length 1 != cube + return count($bb) === 1 and $bb[0]->getAverageEdgeLength() >= 1 and $bb[0]->isCube(); } public function calculateIntercept(Vector3 $pos1, Vector3 $pos2) : ?RayTraceResult{