SlotChangeAction: Remove superfluous >= 0 inventorySlot check

This is done by slotExists() anyway.
This commit is contained in:
Dylan K. Taylor 2017-12-12 10:36:53 +00:00
parent dfc2d1dfe6
commit 3beccc47cd

View File

@ -76,7 +76,6 @@ class SlotChangeAction extends InventoryAction{
*/
public function isValid(Player $source) : bool{
return (
$this->inventorySlot >= 0 and
$this->inventory->slotExists($this->inventorySlot) and
$this->inventory->getItem($this->inventorySlot)->equalsExact($this->sourceItem)
);