diff --git a/Minecraft.Client/MultiPlayerLocalPlayer.cpp b/Minecraft.Client/MultiPlayerLocalPlayer.cpp index aef7898f2..038963db6 100644 --- a/Minecraft.Client/MultiPlayerLocalPlayer.cpp +++ b/Minecraft.Client/MultiPlayerLocalPlayer.cpp @@ -179,6 +179,12 @@ shared_ptr MultiplayerLocalPlayer::drop() return nullptr; } +shared_ptr MultiplayerLocalPlayer::dropall() +{ + connection->send(std::make_shared(PlayerActionPacket::DROP_ALL_ITEMS, 0, 0, 0, 0)); + return nullptr; +} + void MultiplayerLocalPlayer::reallyDrop(shared_ptr itemEntity) { } diff --git a/Minecraft.Client/MultiPlayerLocalPlayer.h b/Minecraft.Client/MultiPlayerLocalPlayer.h index e660a96a2..286e48ec8 100644 --- a/Minecraft.Client/MultiPlayerLocalPlayer.h +++ b/Minecraft.Client/MultiPlayerLocalPlayer.h @@ -36,6 +36,9 @@ public: using Player::drop; virtual shared_ptr drop(); + + using Player::dropall; + virtual shared_ptr dropall(); protected: virtual void reallyDrop(shared_ptr itemEntity); public: