From 6acabf7a1b7b7c27e6ec4187d466a15b3e48a102 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 13 Apr 2023 13:40:53 +0100 Subject: [PATCH] Block: add clarifying note about isSameType() I'm still not happy with this method though... --- src/block/Block.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/block/Block.php b/src/block/Block.php index 8fbb8123d..b818cbac9 100644 --- a/src/block/Block.php +++ b/src/block/Block.php @@ -140,6 +140,9 @@ class Block{ /** * Returns whether the given block has an equivalent type to this one. This compares the type IDs. + * + * Type properties (e.g. colour, skull type, etc.) are not compared. This means that different colours of wool, + * concrete, etc. will all be considered as having the same type. */ public function isSameType(Block $other) : bool{ return $this->getTypeId() === $other->getTypeId();