mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Merge commit 'a2543ff80d2906bccda1a4e2fdbd9d8e7d147fb3'
This commit is contained in:
@ -76,7 +76,7 @@ class Hopper extends Transparent{
|
||||
|
||||
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
|
||||
if($player !== null){
|
||||
$tile = $this->pos->getWorld()->getTile($this->pos);
|
||||
$tile = $this->pos->getWorldNonNull()->getTile($this->pos);
|
||||
if($tile instanceof TileHopper){ //TODO: find a way to have inventories open on click without this boilerplate in every block
|
||||
$player->setCurrentWindow($tile->getInventory());
|
||||
}
|
||||
|
Reference in New Issue
Block a user