mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Player: Window system now only allows 1 window at a time
This commit is contained in:
@ -64,7 +64,7 @@ class Anvil extends Transparent implements Fallable{
|
||||
|
||||
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool{
|
||||
if($player instanceof Player){
|
||||
$player->addWindow(new AnvilInventory($this));
|
||||
$player->setCurrentWindow(new AnvilInventory($this));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user