diff --git a/src/player/Player.php b/src/player/Player.php index 86e18a6c6..336ff6f8c 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -1558,7 +1558,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ $ev = new PlayerBlockPickEvent($this, $block, $item); $existingSlot = $this->inventory->first($item); - if($existingSlot === -1 && $this->hasFiniteResources()){ + if($existingSlot === -1 && ($this->hasFiniteResources() || $this->isSpectator())){ $ev->cancel(); } $ev->call();