mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 15:05:33 +00:00
Removed redundant duplicate method call
This commit is contained in:
parent
0f37bc35ba
commit
c8199e14ad
@ -154,7 +154,7 @@ class NetworkInventoryAction{
|
|||||||
|
|
||||||
$window = $player->getWindow($this->windowId);
|
$window = $player->getWindow($this->windowId);
|
||||||
if($window !== null){
|
if($window !== null){
|
||||||
return new SlotChangeAction($player->getWindow($this->windowId), $this->inventorySlot, $this->oldItem, $this->newItem);
|
return new SlotChangeAction($window, $this->inventorySlot, $this->oldItem, $this->newItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new \InvalidStateException("Player " . $player->getName() . " has no open container with window ID $this->windowId");
|
throw new \InvalidStateException("Player " . $player->getName() . " has no open container with window ID $this->windowId");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user