mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
Fixed cannot remove block metadata
This commit is contained in:
parent
f98a964cdc
commit
ad88ca09bd
@ -68,7 +68,7 @@ class BlockMetadataStore extends MetadataStore{
|
||||
throw new \InvalidArgumentException("Object must be a Block");
|
||||
}
|
||||
if($block->getLevel() === $this->owningLevel){
|
||||
parent::hasMetadata($block, $metadataKey, $owningPlugin);
|
||||
parent::removeMetadata($block, $metadataKey, $owningPlugin);
|
||||
}else{
|
||||
throw new \InvalidStateException("Block does not belong to world " . $this->owningLevel->getName());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user