feat: Ctrl+Q to drop all stack

This commit is contained in:
neoapps-dev
2026-04-02 15:24:58 +03:00
parent a552afded7
commit 3fb20049b9
4 changed files with 10 additions and 5 deletions

View File

@@ -173,9 +173,12 @@ 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;
}
@@ -483,4 +486,4 @@ void MultiplayerLocalPlayer::StressTestMove(double *tempX, double *tempY, double
absMoveTo(nx,ny,nz,yRot,xRot);
stressTestCount++;
}
#endif
#endif