mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-26 05:33:50 +00:00
Merge 03cd7c19d9 into 09df8928ee
This commit is contained in:
commit
7b66c8eb22
5 changed files with 12 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