ItemEntity: remove useless instanceof

This commit is contained in:
Dylan K. Taylor 2018-11-04 11:57:22 +00:00
parent a50a863ab7
commit 3e5237b6e0

View File

@ -208,7 +208,7 @@ class ItemEntity extends Entity{
$item = $this->getItem();
$playerInventory = $player->getInventory();
if(!($item instanceof Item) or ($player->isSurvival() and !$playerInventory->canAddItem($item))){
if($player->isSurvival() and !$playerInventory->canAddItem($item)){
return;
}