mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 06:09:57 +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 = new InventoryOpenEvent($inventory, $this);
|
||||||
$ev->call();
|
$ev->call();
|
||||||
if($ev->isCancelled()){
|
if($ev->isCancelled()){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->windowIndex[$networkId] = $inventory;
|
||||||
|
$this->windows[spl_object_id($inventory)] = $networkId;
|
||||||
$inventory->onOpen($this);
|
$inventory->onOpen($this);
|
||||||
if($isPermanent){
|
if($isPermanent){
|
||||||
$this->permanentWindows[spl_object_id($inventory)] = true;
|
$this->permanentWindows[spl_object_id($inventory)] = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user