mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-22 03:14:11 +00:00
Fixed players' arms staying stuck up after eating something
This commit is contained in:
parent
8811188e71
commit
5b191327bc
@ -2473,6 +2473,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case InventoryTransactionPacket::TYPE_RELEASE_ITEM:
|
case InventoryTransactionPacket::TYPE_RELEASE_ITEM:
|
||||||
|
$this->setUsingItem(false);
|
||||||
|
|
||||||
$type = $packet->trData->actionType;
|
$type = $packet->trData->actionType;
|
||||||
switch($type){
|
switch($type){
|
||||||
case InventoryTransactionPacket::RELEASE_ITEM_ACTION_RELEASE:
|
case InventoryTransactionPacket::RELEASE_ITEM_ACTION_RELEASE:
|
||||||
@ -2485,7 +2487,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$this->inventory->sendContents($this);
|
$this->inventory->sendContents($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setGenericFlag(self::DATA_FLAG_ACTION, false);
|
|
||||||
return true;
|
return true;
|
||||||
case InventoryTransactionPacket::RELEASE_ITEM_ACTION_CONSUME:
|
case InventoryTransactionPacket::RELEASE_ITEM_ACTION_CONSUME:
|
||||||
$slot = $this->inventory->getItemInHand();
|
$slot = $this->inventory->getItemInHand();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user