mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Revert slot change harder
This commit is contained in:
@ -115,7 +115,7 @@ class PlayerInventory extends BaseInventory{
|
||||
if($this->getHolder() instanceof Player){
|
||||
Server::getInstance()->getPluginManager()->callEvent($ev = new PlayerItemHeldEvent($this->getHolder(), $item, $slot, $itemIndex));
|
||||
if($ev->isCancelled()){
|
||||
$this->sendHeldItem($this->getHolder());
|
||||
$this->sendContents($this->getHolder());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user