Input: Add Ctrl+Q shortcut to drop entire item stack

This commit is contained in:
Alezito2008 2026-03-08 22:17:55 -03:00
parent 28614b922f
commit ec23aa2b98
4 changed files with 11 additions and 4 deletions

View file

@ -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;
}