From 8e3772ceef672b406cb75676e6c74ccc01327dbd Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 6 Oct 2021 23:16:03 +0100 Subject: [PATCH] Block: fixed incorrect behaviour of isSameState() for multi-ID blocks fixes #4492 --- 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 7006db1ca..1ef2ccee0 100644 --- a/src/block/Block.php +++ b/src/block/Block.php @@ -179,7 +179,7 @@ class Block{ * Returns whether the given block has the same type and properties as this block. */ public function isSameState(Block $other) : bool{ - return $this->isSameType($other) and $this->writeStateToMeta() === $other->writeStateToMeta(); + return $this->getFullId() === $other->getFullId(); } /**