Block: fixed incorrect behaviour of isSameState() for multi-ID blocks

fixes #4492
This commit is contained in:
Dylan K. Taylor
2021-10-06 23:16:03 +01:00
parent 90800a4124
commit 8e3772ceef

View File

@ -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();
}
/**