mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 03:47:16 +00:00
SlotChangeAction: Remove superfluous >= 0 inventorySlot check
This is done by slotExists() anyway.
This commit is contained in:
parent
dfc2d1dfe6
commit
3beccc47cd
@ -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)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user