Many many changes related to inventory transactions, fixed item dropping, fixed creative menu

This commit is contained in:
Dylan K. Taylor
2017-08-11 19:57:30 +01:00
parent c1ff7bbef4
commit 8958b3c51c
14 changed files with 497 additions and 282 deletions

View File

@ -140,7 +140,6 @@ abstract class BaseInventory implements Inventory{
if($holder instanceof Entity){
Server::getInstance()->getPluginManager()->callEvent($ev = new EntityInventoryChangeEvent($holder, $this->getItem($index), $item, $index));
if($ev->isCancelled()){
$this->sendSlot($index, $this->getViewers());
return false;
}
$item = $ev->getNewItem();