mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Some condition simplifications suggested by static analysis
This commit is contained in:
@ -437,11 +437,8 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
}
|
||||
|
||||
$tag = $this->getNamedTag();
|
||||
if(isset($tag->BlockEntityTag) and $tag->BlockEntityTag instanceof CompoundTag){
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return isset($tag->BlockEntityTag) and $tag->BlockEntityTag instanceof CompoundTag;
|
||||
}
|
||||
|
||||
public function clearCustomBlockData(){
|
||||
|
Reference in New Issue
Block a user