mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-13 20:53:52 +00:00
Input: Add Ctrl+Q shortcut to drop entire item stack
This commit is contained in:
parent
28614b922f
commit
ec23aa2b98
4 changed files with 11 additions and 4 deletions
|
|
@ -173,9 +173,13 @@ void MultiplayerLocalPlayer::sendPosition()
|
|||
|
||||
}
|
||||
|
||||
shared_ptr<ItemEntity> MultiplayerLocalPlayer::drop()
|
||||
shared_ptr<ItemEntity> MultiplayerLocalPlayer::drop(bool dropAll)
|
||||
{
|
||||
connection->send(std::make_shared<PlayerActionPacket>(PlayerActionPacket::DROP_ITEM, 0, 0, 0, 0));
|
||||
int action = dropAll ?
|
||||
PlayerActionPacket::DROP_ALL_ITEMS :
|
||||
PlayerActionPacket::DROP_ITEM;
|
||||
|
||||
connection->send(std::make_shared<PlayerActionPacket>(action, 0, 0, 0, 0));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue