mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 21:59:52 +00:00
this was stupid
This commit is contained in:
parent
8356285b66
commit
468340d55b
@ -2812,14 +2812,14 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
||||
}
|
||||
}
|
||||
|
||||
$this->windowIndex[$networkId] = $inventory;
|
||||
$this->windows[spl_object_id($inventory)] = $networkId;
|
||||
|
||||
$ev = new InventoryOpenEvent($inventory, $this);
|
||||
$ev->call();
|
||||
if($ev->isCancelled()){
|
||||
return -1;
|
||||
}
|
||||
|
||||
$this->windowIndex[$networkId] = $inventory;
|
||||
$this->windows[spl_object_id($inventory)] = $networkId;
|
||||
$inventory->onOpen($this);
|
||||
if($isPermanent){
|
||||
$this->permanentWindows[spl_object_id($inventory)] = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user