mirror of
https://github.com/BluTac10/Xbox-Neo.git
synced 2026-06-07 02:34:37 +00:00
feat: Ctrl+Q to drop all stack
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user