Fixed Item drop delay

This commit is contained in:
Shoghi Cervantes
2014-09-08 07:40:19 +02:00
parent d8c492de4a
commit 0a4e0e3228
2 changed files with 3 additions and 3 deletions

View File

@@ -1903,7 +1903,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
$this->inventory->setItemInHand(Item::get(Item::AIR, 0, 1));
$motion = $this->getDirectionVector()->multiply(0.4);
$this->getLevel()->dropItem($this->add(0, 1.3, 0), $item, $motion);
$this->getLevel()->dropItem($this->add(0, 1.3, 0), $item, $motion, 40);
if($this->inAction === true){
$this->inAction = false;